Skip to content

Commit 51f3f24

Browse files
committed
mypy
1 parent 33b758a commit 51f3f24

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

onnx_diagnostic/torch_export_patches/onnx_export_serialization.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ def serialization_functions(
206206
verbose=verbose,
207207
),
208208
}
209-
classes.update(patch_transformers)
209+
classes.update(transformers_classes)
210210

211211
if patch_diffusers:
212212
from .serialization.diffusers_impl import SUPPORTED_DATACLASSES, __dict__ as dfu
@@ -218,8 +218,8 @@ def serialization_functions(
218218
lname = _lower_name_with_(cls.__name__)
219219
assert (
220220
f"flatten_{lname}" in all_functions
221-
), f"Unable to find function 'flatten_{lname}' in {sorted(all_functions)}"
222-
transformers_classes[cls] = (
221+
), f"Unable to find function 'flatten_{lname}' in {list(all_functions)}"
222+
classes[cls] = (
223223
lambda verbose=verbose, _ln=lname, cls=cls, _al=all_functions: register_class_serialization( # noqa: E501
224224
cls,
225225
_al[f"flatten_{_ln}"],
@@ -228,7 +228,7 @@ def serialization_functions(
228228
verbose=verbose,
229229
)
230230
)
231-
return transformers_classes
231+
return classes
232232

233233

234234
def unregister_class_serialization(cls: type, verbose: int = 0):

0 commit comments

Comments
 (0)