Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Shape returns an empty tensor with shape {0} for a scalar which is in…
…correct as there is a single data element. Expected might be for it to return a shape of `{}`, but ONNX shape inferencing doesn't support scalar either as it calls add_dim on the output_shape at the start so result will always be rank 1 or higher. https://github.com/onnx/onnx/blob/b60f69412abb5393ab819b936b473f83867f6c87/onnx/defs/tensor/defs.cc#L496 The spec doesn't say scalars aren't supported.
- Loading branch information