File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change 1- # Copies (deep-copies) python objects
21import copy
32
43# QONNX wrapper of ONNX model graphs
2928class ComposedTransformation (Transformation ):
3029 # Initializes the transformation given a list of transformations
3130 def __init__ (self , transformations : list [Transformation ]):
32- # Initialize the transformation base class
3331 super ().__init__ ()
3432 # Register the list of transformations to be applied in apply()
3533 self .transformations = transformations
3634
37- # Applies the transform to a whole model graph
3835 def apply (self , model : ModelWrapper ): # noqa
3936 # Keep track of whether the graph has been modified
4037 graph_modified = False
@@ -54,7 +51,7 @@ def apply(self, model: ModelWrapper): # noqa
5451 # Break the loop if this transformation did not change anything
5552 if not _graph_modified :
5653 break
57- # Apply the cleanup transformations of the ModelWrapper
54+ # Apply the default cleanup transformations of the ModelWrapper
5855 model .cleanup ()
5956 # Apply some further cleanup transformations to the model graph
6057 # removing some clutter and keeping all names readable and ordered
You can’t perform that action at this time.
0 commit comments