trunk/50231cc1f690bf1d8794717042fc6baeff2d5993: [dynamo] Never prune an interned singleton from guard state (#197749)
- PyTorch 近 90 天出现 1225 次
- PyTorch 近 90 天第 1211 次发版
- 上一次:同一天稍早 · trunk/6c5d1beaefaee454882519fa91a9d6822c1c98b5: Use the auto H2D constants path in the C++ AOTI tests (#195087)
发生了什么
Problem. Guard-state pruning is keyed by id() , so an unguarded module attribute holding torch.float32 registered the one process-wide dtype object as missing, and every tensor pickled after it carried the _Missing sentinel as its dtype; the artifact then failed to load with empty_strided(): argument 'dtype' must be torch.dtype, not _Missing . The same happens to Ellipsis , the code constant of every x[...] . Fix. _…
摘要按规则整理自下方来源原文