DiNTS: missing graph-break regression test (follow-up to #9145)
维护者通常 1 天内回复
评估
调研方向
从 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.6k
- 平均合并
- 22 小时 56 分钟
- 30 天内合并 PR
- 7
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
Project-MONAI/MONAI 的其他 Issue
-
ProbMapProducer raises IndexError on numpy 2.x: SlidingPatchWSIDataset emits float locations可能已有人在做 @nilapate 于 14 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 82/100
Project-MONAI/MONAI#9135 ·
维护者通常 1 天内回复
-
RandGridPatch crashes for documented 0 or None patch_size entries可能已有人在做 @Rajioba1 于 70 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
Project-MONAI/MONAI#9046 ·
维护者通常 1 天内回复
-
Incorrect type hint in `pad_func`可能已有人在做 @Harshal875 于 76 天前认领。 未关闭
难度 1/5 1 小时以内 新手友好度 88/100
Project-MONAI/MONAI#9026 ·
维护者通常 1 天内回复
-
Remove MMAR Code可能已有人在做 @KumoLiu 于 3 天前认领。 未关闭
Project-MONAI/MONAI#9162 · 已指派 2 人 ·
维护者通常 1 天内回复
-
难度 3/5 1-2 天 新手友好度 74/100
Project-MONAI/MONAI#9151 ·
维护者通常 1 天内回复
查看 Project-MONAI/MONAI 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 76/100
spec-kitty/spec-kitty#6112 ·
维护者通常 1 天内回复
-
[Bug]: OpenRouter streaming chunks report the requested router name instead of the model OpenRouter served可能已有人在做 @Mrun25 今天认领。 未关闭bug llm translation
难度 2/5 1-3 小时 新手友好度 75/100
BerriAI/litellm#46095 · 1 条评论 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 72/100
uberdeveloper/fastbt#29 ·
-
bug
难度 2/5 1-3 小时 新手友好度 78/100
andrew-blake/melcloudhome#368 ·
维护者通常 1 天内回复
-
lane:discover
难度 2/5 1-3 小时 新手友好度 72/100
SPARDiffData/differential-data-collection#33 ·
维护者通常 1 天内回复