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
Traceback (most recent call last):
File "script.py", line 22, in
torch.jit.save(traced, "lltm.pt")
File "/usr/local/anaconda3/lib/python3.6/site-packages/torch/jit/init.py", line 153, in save
m.save(f, _extra_files=_extra_files)
File "/usr/local/anaconda3/lib/python3.6/site-packages/torch/jit/init.py", line 1626, in save
return self._c.save(*args, **kwargs)
RuntimeError:
Could not export Python function call 'LLTMFunction'. Remove calls to Python functions before export. Did you forget add @script or @script_method annotation? If this is a nn.ModuleList, add it to constants:
/workspace/yanglinxia/CenterNet/torchscript/lltm-extension/LLTM.py(42): forward
/usr/local/anaconda3/lib/python3.6/site-packages/torch/nn/modules/module.py(516): _slow_forward
/usr/local/anaconda3/lib/python3.6/site-packages/torch/nn/modules/module.py(530): call
/usr/local/anaconda3/lib/python3.6/site-packages/torch/jit/init.py(1034): trace_module
/usr/local/anaconda3/lib/python3.6/site-packages/torch/jit/init.py(882): trace
script.py(19):
No description provided.
The text was updated successfully, but these errors were encountered: