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
Fix ONNX node name sanitization and allow ai.onnx.ml domain (#3371)
* Fix ONNX node name sanitization to handle special characters
Sanitizes node names containing invalid identifier characters like ':' and '/' by replacing them with underscores, preventing panic during ONNX import.
* Expand ONNX domain support in opset version check
The check_opset_version function now supports both the standard ONNX ('') and ML ('ai.onnx.ml') domains, panicking for unsupported domains. This improves compatibility with models using ML operators.
* Format panic message for unsupported ONNX domain
* Refactor Type::format_name for identifier sanitization
Simplifies and improves the logic for sanitizing names to valid Rust identifiers. The new implementation replaces invalid characters with underscores and ensures the name starts with a valid character, removing special handling for numeric names.
* Document unsupported ai.onnx.ml domain operators
Added a section listing ONNX ML domain operators that are currently not supported for import or Burn support, along with reference links for each operator.
* Remove unsupported ai.onnx.ml operators section
0 commit comments