mirror of
https://github.com/pytorch/pytorch.git
synced 2025-11-13 02:04:42 +08:00
Update base for Update on "[dynamo, 3.14] enable dynamo in 3.14"
dynamo tests are passing in the CI PR above - so we could probably just enable dynamo right now. cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx chenyang78 kadeng chauhang amjames Lucaskabela mlazos [ghstack-poisoned]
This commit is contained in:
@ -4501,9 +4501,12 @@ class TestSerialization(TestCase, SerializationMixin):
|
||||
# Test that without materialize_fake_tensor, behavior for fake_tensors is not altered by ctx
|
||||
if not materialize_fake:
|
||||
ft = converter.from_real_tensor(mode, torch.randn(2, device=t_device))
|
||||
exn_type = (
|
||||
AttributeError if sys.version_info < (3, 14) else pickle.PicklingError
|
||||
)
|
||||
with self.assertRaisesRegex(
|
||||
AttributeError,
|
||||
"Can't (get|pickle) local object 'WeakValueDictionary.__init__.<locals>.remove'"
|
||||
exn_type,
|
||||
r"Can't (get|pickle) local object .*WeakValueDictionary\.__init__\.<locals>\.remove",
|
||||
):
|
||||
with skip_data(), BytesIOContext() as f:
|
||||
torch.save(ft, f)
|
||||
|
||||
Reference in New Issue
Block a user