Commit 079d7afe authored by Ruslan Svirschevski's avatar Ruslan Svirschevski
Browse files

extra check for qs_dict['shape'] is None

parent 45864262
...@@ -642,7 +642,7 @@ class QuantState: ...@@ -642,7 +642,7 @@ class QuantState:
blocksize=qs_dict['blocksize'], blocksize=qs_dict['blocksize'],
code=qs_dict['quant_map'].to(device), code=qs_dict['quant_map'].to(device),
dtype=getattr(torch, qs_dict['dtype']), dtype=getattr(torch, qs_dict['dtype']),
shape=torch.Size(qs_dict['shape']), shape=torch.Size(qs_dict['shape']) if qs_dict['shape'] is not None else None,
offset=offset, offset=offset,
state2=state2, state2=state2,
) )
......
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