Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
343 changes: 295 additions & 48 deletions src/winml/modelkit/analyze/analyzer.py

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions src/winml/modelkit/analyze/core/onnx_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,6 @@ def validate(model_proto: onnx.ModelProto) -> None:
if not model_proto.graph.node:
raise ValueError("Model graph has no nodes")

# Skip strict ONNX validation to allow custom attributes like hierarchy_tag
# The model structure is still validated by checking for non-empty graph
logger.debug("Skipping strict ONNX validation to allow custom attributes")

def extract_metadata(self, detected_pattern_count: dict[str, int] | None = None) -> ModelStats:
Expand Down
Loading
Loading