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
Using mode.to_onnx() does not work if the defined example array is a list or tuple of multiple inputs.
The reason is, that it tries to call inputs.to(device) on the list object:
@rohitgr7 Thanks for your answer. Could you then please help me to understand how to use that with a forward function that takes multiple inputs, as described in my BoringModel example posted above?
🐛 Bug
Using
mode.to_onnx()
does not work if the defined example array is a list or tuple of multiple inputs.The reason is, that it tries to call
inputs.to(device)
on the list object:Please reproduce using the BoringModel and post here
https://colab.research.google.com/drive/1ZxxIBLRVXF-F0rCn68iYi2WX-GxILS9Z?usp=sharing
Expected behavior
Save the onnx-file, even if the defined
self.example_input_array
is a list of arrays.Environment
The text was updated successfully, but these errors were encountered: