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
Summary:
X-link: pytorch/torchrec#2622
If module being quantized contains a some meta tensors and some tensors with actual device, we should not fail quantization.
Quantization should also not fail if new quantized module is created on a meta device.
If devices contain meta, copying from meta to meta is not necessary, copying from another device to meta can be skipped.
Test Plan:
```
buck run fbcode//mode/dev-nosan fbcode//torchrec/fb/quant/tests:test_embedding_modules
```
Reviewed By: emlin
Differential Revision: D66895899
0 commit comments