Skip to content

Commit 4351d23

Browse files
committed
up
1 parent 4a38cb7 commit 4351d23

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

backends/apple/coreml/test/test_coreml_recipes.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
# Please refer to the license found in the LICENSE file in the root directory of the source tree.
44

55

6+
import copy
67
import unittest
78

89
import coremltools as ct
@@ -152,8 +153,9 @@ def forward(self, x):
152153
# Test with different group sizes
153154
for group_size in [8, 16, 32]:
154155
with self.subTest(group_size=group_size):
156+
model_to_export = copy.deepcopy(model)
155157
session = export(
156-
model=model,
158+
model=model_to_export,
157159
example_inputs=example_inputs,
158160
export_recipe=ExportRecipe.get_recipe(
159161
CoreMLRecipeType.TORCHAO_INT4_WEIGHT_ONLY_PER_GROUP,

0 commit comments

Comments
 (0)