DiNTS: missing graph-break regression test (follow-up to #9145)

未關閉 適合新手
#9,159 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 3 天內回覆

@nilapate 已經在處理了。

開始於 2026年10月9日。

  • #9160 來自 @nilapate —— 未關閉

評估

難度
2/5
預估耗時
1-3 小時
新手友好度
66/100
Issue 類型
功能
描述清晰度
描述清楚
活躍度
活躍
技術堆疊
python, pytorch
領域
testing

研究方向

從 test_dints_network.py 開始,放在現有的 TestDintsTopologyCache 測試旁邊,並檢查 #9145 中合併的圖數量與圖中斷斷言,讓風格保持一致。新增一個測試,使用 torch._dynamo.is_dynamo_supported() 作為守衛,並斷言(圖數量,圖中斷數量)這一組值為 (1, 0)。當新測試在本機通過,且在不支援 dynamo 的環境中被乾淨地跳過時,即視為完成。

由索引模型根據 Issue 內容生成。

描述

Describe the bug

Follow-up to #9145 (fixes #9144). Per @ericspod's review: the merged tests don't check the condition from the issue, and we'd want to assert graph count to be 1 and graph breaks to be 0.

test_dints_network.py has no dynamo coverage today — TestDintsTopologyCache tests the snapshot mechanism, not the zero-graph-break outcome, so a regression in the topology branches would land silently.

Expected behavior

A test in test_dints_network.py asserting (1, 0), guarded by torch._dynamo.is_dynamo_supported().

主要語言
Python
星號
8.8k
分支
1.7k
平均合併
6 天 1 小時
30 天內合併 PR
15

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

Project-MONAI/MONAI 的其他 Issue

查看 Project-MONAI/MONAI 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。