Open zetyquickly opened 4 years ago
Have anyone met it too?
@zetyquickly can you load and run the saved TorchScript model on desktop? Does it only fail when you run on mobile?
@ljk53
Yes, this happens only on mobile.
But
1) I haven't tried to load it via libtorch
on desktop
2) None
parameter is present in function calls in TorchScript code inside .pt
archive anyway
Do you have a script or notebook that we can use to reproduce this issue?
🐛 Bug
The bug takes place when TorchScript scripting is used from eager Python code. ATen::to in resulting TorchScript code has one extra parameter
None
. ThenC++
cannot deal with itTo Reproduce
This comes from an article on discuss:
https://discuss.pytorch.org/t/jit-mobile-wrong-substitution-of-aten-to/60846
Expected behavior
Substitution doesn't contain extra
None
Environment
conda
):cc @suo