You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, i tried to run the demo code in transform_example.ipynb and no error occurred. However, when i add transformer.register(nn.Linear, QLinear), there is an error.
TypeError: empty() received an invalid combination of arguments - got (tuple, dtype=NoneType, device=NoneType), but expected one of:
And the error seems to result from the init function of Linear layer self.weight = Parameter(torch.empty((out_features, in_features), **factory_kwargs))
The text was updated successfully, but these errors were encountered:
Hey, i tried to run the demo code in
transform_example.ipynb
and no error occurred. However, when i addtransformer.register(nn.Linear, QLinear)
, there is an error.And the error seems to result from the init function of Linear layer
self.weight = Parameter(torch.empty((out_features, in_features), **factory_kwargs))
The text was updated successfully, but these errors were encountered: