pytorch - 💡(How to fix) Fix DISABLED test_origami_fallback_when_disabled (__main__.TestOrigami)

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Error Message

2026-05-21T04:36:31.1066962Z =================================== FAILURES =================================== 2026-05-21T04:36:31.1067453Z ________ TestOrigami.test_origami_fallback_when_disabled (op_name='mm') ________ 2026-05-21T04:36:31.1067846Z Traceback (most recent call last): 2026-05-21T04:36:31.1074751Z File "/var/lib/jenkins/pytorch/test/inductor/test_origami.py", line 450, in test_origami_fallback_when_disabled 2026-05-21T04:36:31.1075203Z mock.patch( 2026-05-21T04:36:31.1075499Z File "/opt/conda/envs/py_3.12/lib/python3.12/unittest/mock.py", line 1451, in enter 2026-05-21T04:36:31.1075903Z self.target = self.getter() 2026-05-21T04:36:31.1076171Z ^^^^^^^^^^^^^ 2026-05-21T04:36:31.1076504Z File "/opt/conda/envs/py_3.12/lib/python3.12/pkgutil.py", line 528, in resolve_name 2026-05-21T04:36:31.1076808Z result = getattr(result, p) 2026-05-21T04:36:31.1077046Z ^^^^^^^^^^^^^^^^^^ 2026-05-21T04:36:31.1077319Z AttributeError: module 'torch._inductor' has no attribute 'template_heuristics'

Root Cause

This test was disabled because it is failing on main branch (recent example).

Fix Action

Fix / Workaround

2026-05-21T04:36:31.1066962Z =================================== FAILURES ===================================
2026-05-21T04:36:31.1067453Z ________ TestOrigami.test_origami_fallback_when_disabled (op_name='mm') ________
2026-05-21T04:36:31.1067846Z Traceback (most recent call last):
2026-05-21T04:36:31.1074751Z   File "/var/lib/jenkins/pytorch/test/inductor/test_origami.py", line 450, in test_origami_fallback_when_disabled
2026-05-21T04:36:31.1075203Z     mock.patch(
2026-05-21T04:36:31.1075499Z   File "/opt/conda/envs/py_3.12/lib/python3.12/unittest/mock.py", line 1451, in __enter__
2026-05-21T04:36:31.1075903Z     self.target = self.getter()
2026-05-21T04:36:31.1076171Z                   ^^^^^^^^^^^^^
2026-05-21T04:36:31.1076504Z   File "/opt/conda/envs/py_3.12/lib/python3.12/pkgutil.py", line 528, in resolve_name
2026-05-21T04:36:31.1076808Z     result = getattr(result, p)
2026-05-21T04:36:31.1077046Z              ^^^^^^^^^^^^^^^^^^
2026-05-21T04:36:31.1077319Z AttributeError: module 'torch._inductor' has no attribute 'template_heuristics'

Code Example

2026-05-21T04:36:31.1066962Z =================================== FAILURES ===================================
2026-05-21T04:36:31.1067453Z ________ TestOrigami.test_origami_fallback_when_disabled (op_name='mm') ________
2026-05-21T04:36:31.1067846Z Traceback (most recent call last):
2026-05-21T04:36:31.1074751Z   File "/var/lib/jenkins/pytorch/test/inductor/test_origami.py", line 450, in test_origami_fallback_when_disabled
2026-05-21T04:36:31.1075203Z     mock.patch(
2026-05-21T04:36:31.1075499Z   File "/opt/conda/envs/py_3.12/lib/python3.12/unittest/mock.py", line 1451, in __enter__
2026-05-21T04:36:31.1075903Z     self.target = self.getter()
2026-05-21T04:36:31.1076171Z                   ^^^^^^^^^^^^^
2026-05-21T04:36:31.1076504Z   File "/opt/conda/envs/py_3.12/lib/python3.12/pkgutil.py", line 528, in resolve_name
2026-05-21T04:36:31.1076808Z     result = getattr(result, p)
2026-05-21T04:36:31.1077046Z              ^^^^^^^^^^^^^^^^^^
2026-05-21T04:36:31.1077319Z AttributeError: module 'torch._inductor' has no attribute 'template_heuristics'

---

* `heuristics/template/`: move of the former top-level
  `template_heuristics/` package into the new hierarchy.  All internal imports,
  test imports, and `select_algorithm.py` are updated to the new paths.
RAW_BUFFERClick to expand / collapse

Platforms: rocm

This test was disabled because it is failing on main branch (recent example).

2026-05-21T04:36:31.1066962Z =================================== FAILURES ===================================
2026-05-21T04:36:31.1067453Z ________ TestOrigami.test_origami_fallback_when_disabled (op_name='mm') ________
2026-05-21T04:36:31.1067846Z Traceback (most recent call last):
2026-05-21T04:36:31.1074751Z   File "/var/lib/jenkins/pytorch/test/inductor/test_origami.py", line 450, in test_origami_fallback_when_disabled
2026-05-21T04:36:31.1075203Z     mock.patch(
2026-05-21T04:36:31.1075499Z   File "/opt/conda/envs/py_3.12/lib/python3.12/unittest/mock.py", line 1451, in __enter__
2026-05-21T04:36:31.1075903Z     self.target = self.getter()
2026-05-21T04:36:31.1076171Z                   ^^^^^^^^^^^^^
2026-05-21T04:36:31.1076504Z   File "/opt/conda/envs/py_3.12/lib/python3.12/pkgutil.py", line 528, in resolve_name
2026-05-21T04:36:31.1076808Z     result = getattr(result, p)
2026-05-21T04:36:31.1077046Z              ^^^^^^^^^^^^^^^^^^
2026-05-21T04:36:31.1077319Z AttributeError: module 'torch._inductor' has no attribute 'template_heuristics'

This test is most likely failing due to the refactor in https://github.com/pytorch/pytorch/commit/5236c717d49986daaa72249528f8f1aa5062bedb:

* `heuristics/template/`: move of the former top-level
  `template_heuristics/` package into the new hierarchy.  All internal imports,
  test imports, and `select_algorithm.py` are updated to the new paths.

cc @jeffdaily @sunway513 @pruthvistony @ROCmSupport @jataylo @hongxiayang @naromero77amd @pragupta @jerrymannil @xinyazhang @mruberry @chauhang @penguinwu @voznesenskym @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @ipiszy @kadeng @muchulee8 @amjames @aakhundov @coconutruben

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING