DISABLED test_torchvision_models_efficientnet_b4 (__main__.TestVisionTracing)
- Dominant language
- Python
- Stars
- 103k
- Forks
- 29.5k
- PR merge metrics
- PR metrics pending
Description
Platforms: linux, asan, slow
This test was disabled because it is failing in CI. See [recent examples](https://hud.pytorch.org/flakytest?name=test_torchvision_models_efficientnet_b4&suite=TestVisionTracing&limit=100) and the most recent trunk [workflow logs](https://github.com/pytorch/pytorch/runs/74343486636).
Over the past 6 hours, it has been determined flaky in 3 workflow(s) with 3 failures and 3 successes.
**Debugging instructions (after clicking on the recent samples link):**
DO NOT ASSUME THINGS ARE OKAY IF THE CI IS GREEN. We now shield flaky tests from developers so CI will thus be green but it will be harder to parse the logs.
To find relevant log snippets:
1. Click on the workflow logs linked above
2. Click on the Test step of the job so that it is expanded. Otherwise, the grepping will not work.
3. Grep for `test_torchvision_models_efficientnet_b4`
4. There should be several instances run (as flaky tests are rerun in CI) from which you can study the logs.
Sample error message
```
Traceback (most recent call last):
File "/__w/pytorch/pytorch/test/test_fx.py", line 5451, in run_test
script = torch.jit.script(graph)
File "/opt/conda/envs/py_3.14/lib/python3.14/site-packages/torch/jit/_script.py", line 1498, in script
ret = _script_impl(
obj=obj,
...<3 lines>...
example_inputs=example_inputs,
)
File "/opt/conda/envs/py_3.14/lib/python3.14/site-packages/torch/jit/_script.py", line 1196, in _script_impl
return torch.jit._recursive.create_script_module(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
obj, torch.jit._recursive.infer_methods_to_compile
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/opt/conda/envs/py_3.14/lib/python3.14/site-packages/torch/jit/_recursive.py", line 566, in create_script_module
return create_script_module_impl(nn_module, concrete_type, stubs_fn)
File "/opt/conda/envs/py_3.14/lib/python3.14/site-packages/torch/jit/_recursive.py", line 634, in create_script_module_impl
script_module = torch.jit.RecursiveScriptModule._construct(cpp_module, init_fn)
File "/opt/conda/envs/py_3.14/lib/python3.14/site-packages/torch/jit/_script.py", line 673, in _construct
init_fn(script_module)
~~~~~~~^^^^^^^^^^^^^^^
File "/opt/conda/envs/py_3.14/lib/python3.14/site-packages/torch/jit/_recursive.py", line 610, in init_fn
scripted = create_script_module_impl(
orig_value, sub_concrete_type, stubs_fn
)
File "/opt/conda/envs/py_3.14/lib/python3.14/site-packages/torch/jit/_recursive.py", line 634, in create_script_module_impl
script_module = torch.jit.RecursiveScriptModule._construct(cpp_module, init_fn)
File "/opt/conda/envs/py_3.14/lib/python3.14/site-packages/torch/jit/_script.py", line 673, in _construct
init_fn(script_module)
~~~~~~~^^^^^^^^^^^^^^^
File "/opt/conda/envs/py_3.14/lib/python3.14/site-packages/torch/jit/_recursive.py", line 610, in init_fn
scripted = create_script_module_impl(
orig_value, sub_concrete_type, stubs_fn
)
File "/opt/conda/envs/py_3.14/lib/python3.14/site-packages/torch/jit/_recursive.py", line 634, in create_script_module_impl
script_module = torch.jit.RecursiveScriptModule._construct(cpp_module, init_fn)
File "/opt/conda/envs/py_3.14/lib/python3.14/site-packages/torch/jit/_script.py", line 673, in _construct
init_fn(script_module)
~~~~~~~^^^^^^^^^^^^^^^
File "/opt/conda/envs/py_3.14/lib/python3.14/site-packages/torch/jit/_recursive.py", line 610, in init_fn
scripted = create_script_module_impl(
orig_value, sub_concrete_type, stubs_fn
)
File "/opt/conda/envs/py_3.14/lib/python3.14/site-packages/torch/jit/_recursive.py", line 634, in create_script_module_impl
script_module = torch.jit.RecursiveScriptModule._construct(cpp_module, init_fn)
File "/opt/conda/envs/py_3.14/lib/python3.14/site-packages/torch/jit/_script.py", line 673, in _construct
init_fn(script_module)
~~~~~~~^^^^^^^^^^^^^^^
File "/opt/conda/envs/py_3.14/lib/python3.14/site-packages/torch/jit/_recursive.py", line 610, in init_fn
scripted = create_script_module_impl(
orig_value, sub_concrete_type, stubs_fn
)
File "/opt/conda/envs/py_3.14/lib/python3.14/site-packages/torch/jit/_recursive.py", line 634, in create_script_module_impl
script_module = torch.jit.RecursiveScriptModule._construct(cpp_module, init_fn)
File "/opt/conda/envs/py_3.14/lib/python3.14/site-packages/torch/jit/_script.py", line 673, in _construct
init_fn(script_module)
~~~~~~~^^^^^^^^^^^^^^^
File "/opt/conda/envs/py_3.14/lib/python3.14/site-packages/torch/jit/_recursive.py", line 610, in init_fn
scripted = create_script_module_impl(
orig_value, sub_concrete_type, stubs_fn
)
File "/opt/conda/envs/py_3.14/lib/python3.14/site-packages/torch/jit/_recursive.py", line 634, in create_script_module_impl
script_module = torch.jit.RecursiveScriptModule._construct(cpp_module, init_fn)
File "/opt/conda/envs/py_3.14/lib/python3.14/site-packages/torch/jit/_script.py", line 673, in _construct
init_fn(script_module)
~~~~~~~^^^^^^^^^^^^^^^
File "/opt/conda/envs/py_3.14/lib/python3.14/site-packages/torch/jit/_recursive.py", line 610, in init_fn
scripted = create_script_module_impl(
orig_value, sub_concrete_type, stubs_fn
)
File "/opt/conda/envs/py_3.14/lib/python3.14/site-packages/torch/jit/_recursive.py", line 638, in create_script_module_impl
create_methods_and_properties_from_stubs(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
concrete_type, method_stubs, property_stubs
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/opt/conda/envs/py_3.14/lib/python3.14/site-packages/torch/jit/_recursive.py", line 473, in create_methods_and_properties_from_stubs
concrete_type._create_methods_and_properties(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
property_defs, property_rcbs, method_defs, method_rcbs, method_defaults
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/opt/conda/envs/py_3.14/lib/python3.14/site-packages/torch/jit/_recursive.py", line 1037, in compile_unbound_method
create_methods_and_properties_from_stubs(concrete_type, (stub,), ())
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/envs/py_3.14/lib/python3.14/site-packages/torch/jit/_recursive.py", line 473, in create_methods_and_properties_from_stubs
concrete_type._create_methods_and_properties(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
property_defs, property_rcbs, method_defs, method_rcbs, method_defaults
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
RuntimeError:
builtin cannot be used as a value:
File "/opt/conda/envs/py_3.14/lib/python3.14/site-packages/torch/nn/modules/conv.py", line 550
return F.conv2d(
F.pad(
input, self._reversed_padding_repeated_twice, mode=self.padding_mode
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ <--- HERE
),
weight,
'Conv2d._conv_forward' is being compiled since it was called from 'Conv2d.forward'
File "/opt/conda/envs/py_3.14/lib/python3.14/site-packages/torch/nn/modules/conv.py", line 565
def forward(self, input: Tensor) -> Tensor:
return self._conv_forward(input, self.weight, self.bias)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ <--- HERE
To execute this test, run the following from the base repo dir:
PYTORCH_TEST_WITH_CROSSREF=1 python test/test_fx.py TestVisionTracing.test_torchvision_models_efficientnet_b4
This message can be suppressed by setting PYTORCH_PRINT_REPRO_ON_FAILURE=0
```
Test file path: `test_fx.py`
For all disabled tests (by GitHub issue), see https://hud.pytorch.org/disabled.
cc @ezyang @EikanWang @jgong5 @wenzhe-nrv
Contributor guide
Assessment
This issue has not been assessed yet.