Skip to content

Commit 7c86aee

Browse files
authored
Merge pull request #168 from iksnagreb/cleanup-give-unique-parameter-tensors
Add GiveUniqueParameterTensors to ModelWrapper.cleanup transformations
2 parents a4291e1 + 61f1c9a commit 7c86aee

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/qonnx/core/modelwrapper.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
from qonnx.custom_op.registry import getCustomOp, is_custom_op
4343
from qonnx.transformation.double_to_single_float import DoubleToSingleFloat
4444
from qonnx.transformation.general import (
45+
GiveUniqueParameterTensors,
4546
RemoveStaticGraphInputs,
4647
RemoveUnusedTensors,
4748
SortCommutativeInputsInitializerLast,
@@ -209,6 +210,7 @@ def cleanup(self):
209210
RemoveStaticGraphInputs(),
210211
SortGraph(),
211212
SortCommutativeInputsInitializerLast(),
213+
GiveUniqueParameterTensors(),
212214
]
213215
for trn in cleanup_transforms:
214216
transformed_model = transformed_model.transform(trn, cleanup=False, make_deepcopy=False)

0 commit comments

Comments
 (0)