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
✅ Obtain model graph with `torch.export.export`
✅ Translate the graph into ONNX
❌ Run `onnx.checker` on the ONNX model
⚪ Execute the model with ONNX Runtime
⚪ Validate model output accuracy
Error message
Traceback (most recent call last):
File "/Users/justinc/Documents/GitHub/torch-onnx/src/torch_onnx/_core.py", line 1052, in export
_isolated.safe_call(
File "/Users/justinc/Documents/GitHub/torch-onnx/src/torch_onnx/_isolated.py", line 53, in safe_callraise result
onnx.onnx_cpp2py_export.checker.ValidationError: Node (node_Cast_0) has input size 0 not in range [min=1, max=1].
==> Context: Bad node spec for node. Name: node_Cast_0 OpType: Cast
PyTorch ONNX Conversion Error Report
Error message
Exported program
ONNX model:
Analysis
PyTorch ONNX Conversion Analysis
Model Information
The model has 0 parameters and 0 buffers (non-trainable parameters).
Number of parameters per dtype:
Number of buffers per dtype:
Inputs:
arg0_1
:TensorMetadata(shape=torch.Size([]), dtype=torch.int64, requires_grad=False, stride=(), memory_format=torch.contiguous_format, is_quantized=False, qparams={})
Outputs:
view
:TensorMetadata(shape=torch.Size([]), dtype=torch.int64, requires_grad=False, stride=(), memory_format=torch.contiguous_format, is_quantized=False, qparams={})
The FX graph has 3 nodes in total. Number of FX nodes per op:
placeholder
: 1call_function
: 1output
: 1Of the call_function nodes, the counts of operators used are:
aten.view.default
: 1ONNX Conversion Information
All operators in the model have registered ONNX decompositions.
The text was updated successfully, but these errors were encountered: