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 e2c7d17 commit e229ed1Copy full SHA for e229ed1
tests/models/test_modeling_common.py
@@ -1936,6 +1936,9 @@ def test_torch_compile_recompilation_and_graph_break(self):
1936
_ = model(**inputs_dict)
1937
1938
def test_torch_compile_repeated_blocks(self):
1939
+ if self.model_class._repeated_blocks is None:
1940
+ pytest.skip("Skipping test as `_repeated_blocks` is not set in the model class.")
1941
+
1942
init_dict, inputs_dict = self.prepare_init_args_and_inputs_for_common()
1943
1944
model = self.model_class(**init_dict).to(torch_device)
0 commit comments