pytorch - 💡(How to fix) Fix DISABLED test_origami_module_gate_when_env_var_unset (__main__.TestOrigami) [3 pull requests]

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

=========================== short test summary info ============================ 2026-05-20T17:22:40.3680105Z FAILED [2.2906s] inductor/test_origami.py::TestOrigami::test_origami_module_gate_when_env_var_unset - AssertionError: Scalars are not equal! 2026-05-20T17:22:40.3680338Z 2026-05-20T17:22:40.3680379Z Expected 0 but got 1. 2026-05-20T17:22:40.3680482Z Absolute difference: 1 2026-05-20T17:22:40.3680588Z Relative difference: inf 2026-05-20T17:22:40.3680690Z subprocess failed: 2026-05-20T17:22:40.3680781Z stdout: 2026-05-20T17:22:40.3680878Z stderr: Traceback (most recent call last): 2026-05-20T17:22:40.3681015Z File "<string>", line 3, in <module> 2026-05-20T17:22:40.3681187Z ModuleNotFoundError: No module named 'torch._inductor.template_heuristics'

Root Cause

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

Fix Action

Fixed

Code Example

=========================== short test summary info ============================
2026-05-20T17:22:40.3680105Z FAILED [2.2906s] inductor/test_origami.py::TestOrigami::test_origami_module_gate_when_env_var_unset - AssertionError: Scalars are not equal!
2026-05-20T17:22:40.3680338Z 
2026-05-20T17:22:40.3680379Z Expected 0 but got 1.
2026-05-20T17:22:40.3680482Z Absolute difference: 1
2026-05-20T17:22:40.3680588Z Relative difference: inf
2026-05-20T17:22:40.3680690Z subprocess failed:
2026-05-20T17:22:40.3680781Z stdout: 
2026-05-20T17:22:40.3680878Z stderr: Traceback (most recent call last):
2026-05-20T17:22:40.3681015Z   File "<string>", line 3, in <module>
2026-05-20T17:22:40.3681187Z ModuleNotFoundError: No module named 'torch._inductor.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 examples).

 =========================== short test summary info ============================
2026-05-20T17:22:40.3680105Z FAILED [2.2906s] inductor/test_origami.py::TestOrigami::test_origami_module_gate_when_env_var_unset - AssertionError: Scalars are not equal!
2026-05-20T17:22:40.3680338Z 
2026-05-20T17:22:40.3680379Z Expected 0 but got 1.
2026-05-20T17:22:40.3680482Z Absolute difference: 1
2026-05-20T17:22:40.3680588Z Relative difference: inf
2026-05-20T17:22:40.3680690Z subprocess failed:
2026-05-20T17:22:40.3680781Z stdout: 
2026-05-20T17:22:40.3680878Z stderr: Traceback (most recent call last):
2026-05-20T17:22:40.3681015Z   File "<string>", line 3, in <module>
2026-05-20T17:22:40.3681187Z ModuleNotFoundError: No module named 'torch._inductor.template_heuristics'

This test started failing from https://github.com/pytorch/pytorch/commit/5236c717d49986daaa72249528f8f1aa5062bedb onwards in inductor-rocm-mi355, most likely due to the refactor in that commit:

* `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 @umechand-amd

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