adaptive_max_pool2d int64: eager 会抛出异常,但 `torch.compile`(引入器)会默默接受
作者: tinywisdom创建于 2026年9月15日更新于 2026年9月17日
标签triagedmodule: poolingoncall: pt2module: inductorbot-triagedrelease triage
Describe the bug
torch.nn.functional.adaptive_max_pool2d on an int64 input raises in eager but is
silently accepted under torch.compile (inductor) — so a program that errors in eager
starts "working" (and returns an int64 result) once compiled.
内容来源: pytorch/pytorch