ONNX037: graph-output-missing-shape

Code: ONNX037

Name: graph-output-missing-shape

Severity: error

Category: spec

Target: graph

Fixable: No

Message

Graph output is missing shape 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 shape information. Runtimes use shapes to allocate memory. Running shape inference can often resolve this automatically.