pub fn validate_model_proto(model: &ModelProto) -> Result<(), LoaderError>Expand description
Validate ONNX model metadata and protobuf-level graph invariants that are
intentionally not preserved by the runtime IR (notably ir_version and
AttributeProto::ref_attr_name).
This runs before graph construction, ensuring invalid names cannot be coalesced into a single IR value and attribute references cannot be dropped.