Unverified Commit 8fd65619 authored by Yih-Dar's avatar Yih-Dar Committed by GitHub
Browse files

Fix `torch.fx` tests on nightly CI (#25549)



* fix

* fix

* fix

---------
Co-authored-by: default avatarydshieh <ydshieh@users.noreply.github.com>
parent ec25306b
...@@ -1058,7 +1058,7 @@ class HFTracer(Tracer): ...@@ -1058,7 +1058,7 @@ class HFTracer(Tracer):
# We enforce that root must either be a PreTrainedModel or deserialized from a serialized traced model to # We enforce that root must either be a PreTrainedModel or deserialized from a serialized traced model to
# be able to use HFTracer._generate_dummy_input. # be able to use HFTracer._generate_dummy_input.
if isinstance(root, self.supported_archs) or type(root).__qualname__.startswith( if isinstance(root, self.supported_archs) or type(root).__qualname__.startswith(
"_deserialize_graph_module" ("_deserialize_graph_module", "_CodeOnlyModule")
): ):
inputs.update(self._generate_dummy_input(root, input_name, shape)) inputs.update(self._generate_dummy_input(root, input_name, shape))
else: else:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment