ONNX018: missing-value-type

Code: ONNX018

Name: missing-value-type

Severity: info

Category: spec

Target: value

Fixable: No

Enabled by default: No (use --select ONNX018 to enable)

Message

Value has no type annotation.

Suggestion

Run shape inference or set the type manually, e.g. value.type = ir.TensorType(ir.DataType.FLOAT).

Details

Values should have type annotations for shape inference and runtime compatibility checks. Missing types on intermediate values may cause issues with downstream tools. This rule is off by default because intermediate values commonly lack type info before shape inference. Use --select ONNX018 to enable it.