-
Notifications
You must be signed in to change notification settings - Fork 446
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ONNX import issue: Reshape: shape tensor must be present for Node
#2115
Comments
landmarks_68_pfld
: Only tensor input is valid but received: Shape(4)
Only tensor input is valid but received: Shape(4)
in gather_update_outputs()
due to node.input[0]
being Shape
rather than Tensor
c2b6318 switched to using As far as I can tell, the ONNX Spec does not differentiate between Shapes and other 1D Tensors; each time an input or output argument contains a shape, the spec defines it as
or similar. Now, I can see 2 ways forward:
Is there a way to know if many operators besides |
We started using Shape arg/input/output type. Please see my comment here in the PR: #1815 (comment) Although ONNX spec does not differentiate types (scalar, shape, tensor are all the same), Burn and other frameworks do. Shape calculation will be a overkill if we use tensor ops because shape information is stored on CPU so it will require constant syncing from GPU device. Our reshape onnx node can accept Shape arg type. |
After #2128 was merge this is now:
|
Only tensor input is valid but received: Shape(4)
in gather_update_outputs()
due to node.input[0]
being Shape
rather than Tensor
Gather: indices tensor rank above 1 not supported
in gather_update_outputs()
Yeah the gather op translates to |
After be5eb91:
|
Gather: indices tensor rank above 1 not supported
in gather_update_outputs()
Can't transform scalar to tensor.
in impl From<&OnnxArgument> for TensorType
After #2148:
|
Can't transform scalar to tensor.
in impl From<&OnnxArgument> for TensorType
Ident cannot be a number; use Literal instead
in TensorType::new()
This has evolved to:
|
Ident cannot be a number; use Literal instead
in TensorType::new()
Reshape: shape tensor must be present for Node
Link to model: https://drive.google.com/file/d/1qgM6ZqMyB60FYlzzxNDyUefifLS0lhag/view?usp=sharing
The text was updated successfully, but these errors were encountered: