Skip to content

Commit 7339ce1

Browse files
committed
up
1 parent 4351d23 commit 7339ce1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

backends/apple/coreml/test/test_coreml_recipes.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,8 +221,9 @@ def forward(self, x):
221221
# Test with different group sizes
222222
for group_size in [16, 32, 64]:
223223
with self.subTest(group_size=group_size):
224+
model_to_export = copy.deepcopy(model)
224225
session = export(
225-
model=model,
226+
model=model_to_export,
226227
example_inputs=example_inputs,
227228
export_recipe=ExportRecipe.get_recipe(
228229
CoreMLRecipeType.TORCHAO_INT8_WEIGHT_ONLY_PER_GROUP,

0 commit comments

Comments
 (0)