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 16913bc commit 31e7381Copy full SHA for 31e7381
torchao/core/config.py
@@ -144,10 +144,11 @@ def default(self, o):
144
return [self.encode_value(item) for item in o]
145
146
elif isinstance(o, tuple):
147
- raise NotImplementedError(
148
- "Tuples will be serialized as List in JSON, so we recommend to use "
149
- f"Lists instead to avoid surprises. got: {o}"
150
- )
+ return [self.encode_value(item) for item in o]
+ # raise NotImplementedError(
+ # "Tuples will be serialized as List in JSON, so we recommend to use "
+ # f"Lists instead to avoid surprises. got: {o}"
151
+ # )
152
153
if isinstance(o, dict):
154
return {k: self.encode_value(v) for k, v in o.items()}
0 commit comments