Skip to content

Commit 31e7381

Browse files
committed
update
1 parent 16913bc commit 31e7381

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

torchao/core/config.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -144,10 +144,11 @@ def default(self, o):
144144
return [self.encode_value(item) for item in o]
145145

146146
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-
)
147+
return [self.encode_value(item) for item in o]
148+
# raise NotImplementedError(
149+
# "Tuples will be serialized as List in JSON, so we recommend to use "
150+
# f"Lists instead to avoid surprises. got: {o}"
151+
# )
151152

152153
if isinstance(o, dict):
153154
return {k: self.encode_value(v) for k, v in o.items()}

0 commit comments

Comments
 (0)