ONNX036: graph-output-missing-type¶
Code: ONNX036
Name: graph-output-missing-type
Severity: error
Category: spec
Target: graph
Fixable: No
Message¶
Graph output is missing type information.
Suggestion¶
Run shape inference on the model, e.g. onnx.shape_inference.infer_shapes(model).
Details¶
Per the ONNX specification, graph outputs must have type information. Runtimes use these types to validate output shapes. Running shape inference can often resolve this automatically.