File tree Expand file tree Collapse file tree
src/winml/modelkit/pattern Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -314,8 +314,8 @@ def check_skeleton_result(
314314
315315 @property
316316 def pattern_id (self ) -> str :
317- """Return pattern ID matching the information rule configuration ."""
318- return "SUBGRAPH/ReshapeTransposeReshapeOverlyHighDimPattern "
317+ """Return pattern ID derived from the class name ."""
318+ return f "SUBGRAPH/{ type ( self ). __name__ } "
319319
320320 def get_schema (self ) -> PatternSchema :
321321 """Return the schema definition for ReshapeTransposeReshape pattern.
@@ -616,8 +616,8 @@ def get_internal_constants_and_attributes(
616616
617617 @property
618618 def pattern_id (self ) -> str :
619- """Return pattern ID matching the information rule configuration ."""
620- return "SUBGRAPH/ReshapeTransposeReshapeLowDimPattern "
619+ """Return pattern ID derived from the class name ."""
620+ return f "SUBGRAPH/{ type ( self ). __name__ } "
621621
622622 def get_schema (self ) -> PatternSchema :
623623 """Return the schema definition for ReshapeTransposeReshapeLowDim pattern."""
You can’t perform that action at this time.
0 commit comments