in diffq/base.py [0:0]
def unquantize(self):
"""
Revert a previous call to `quantize()`.
"""
if not self._quantized:
return
if not self._saved:
raise RuntimeError("Nothing to restore. This shouldn't happen")
for qparam in self._qparams:
if qparam.other is None:
qparam.param.data[:] = self._saved.pop(0)
assert len(self._saved) == 0
self._quantized = False
self._fix_rnns()