"vscode:/vscode.git/clone" did not exist on "7ebc3ad8d720004df01fdde424dcaefc9f43bd6f"
Unverified Commit e4fe1cfb authored by Matthew Douglas's avatar Matthew Douglas Committed by GitHub
Browse files

QuantState.to(): move code tensor with others to correct device, fixes #1527 (#1528)

parent cb3adb03
......@@ -821,6 +821,7 @@ class QuantState:
def to(self, device):
# make sure the quantization state is on the right device
self.code = self.code.to(device)
self.absmax = self.absmax.to(device)
if self.nested:
self.offset = self.offset.to(device)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment