microsoft / nni

An open source AutoML toolkit for automate machine learning lifecycle, including feature engineering, neural architecture search, model compression and hyper-parameter tuning.
https://nni.readthedocs.io
MIT License
14k stars 1.81k forks source link

Speedup RAFT fails #5646

Open akatzi77 opened 1 year ago

akatzi77 commented 1 year ago

Describe the bug: I'm using https://github.com/princeton-vl/RAFT trained with the pre-trained raft-things.pt. When speeding up the model I get and error: File "/usr/local/lib/python3.8/dist-packages/nni/compression/pytorch/speedup/jit_translate.py", line 245, in call result = self.func(*self.positional, **self.keyword) TypeError: linspace(): argument 'layout' must be torch.layout, not NoneType

The 'layout' is indeed None.

Environment:

Reproduce the problem