trunk/50231cc1f690bf1d8794717042fc6baeff2d5993: [dynamo] Never prune an interned singleton from guard state (#197749)
- PyTorch: 1224 events in the last 90 days
- PyTorch: 1210th Release in the last 90 days
- Previous: earlier the same day · trunk/6c5d1beaefaee454882519fa91a9d6822c1c98b5: Use the auto H2D constants path in the C++ AOTI tests (#195087)
What happened
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. _…
Summary assembled by rule from the sources below