We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a38cb7 commit 4351d23Copy full SHA for 4351d23
backends/apple/coreml/test/test_coreml_recipes.py
@@ -3,6 +3,7 @@
3
# Please refer to the license found in the LICENSE file in the root directory of the source tree.
4
5
6
+import copy
7
import unittest
8
9
import coremltools as ct
@@ -152,8 +153,9 @@ def forward(self, x):
152
153
# Test with different group sizes
154
for group_size in [8, 16, 32]:
155
with self.subTest(group_size=group_size):
156
+ model_to_export = copy.deepcopy(model)
157
session = export(
- model=model,
158
+ model=model_to_export,
159
example_inputs=example_inputs,
160
export_recipe=ExportRecipe.get_recipe(
161
CoreMLRecipeType.TORCHAO_INT4_WEIGHT_ONLY_PER_GROUP,
0 commit comments