Back out "[pytree] Require serialized_type_name" (#120041)

Summary:
D53785493 breaks apf.rec.ir.tests.ir_export_deserialize_test.IRExportDeserializeTest: test_export_deserialize_ebc failed:

https://www.internalfb.com/sandcastle/workflow/3436246515685789584

Test Plan: buck2 test mode/opt apf/rec/ir/tests:ir_export_deserialize_test

Differential Revision: D53834881

Co-authored-by: Wilson Hong <wilsonhong@meta.com>
Pull Request resolved: https://github.com/pytorch/pytorch/pull/120041
Approved by: https://github.com/ydwu4
This commit is contained in:
Wilson Hong
2024-02-16 10:02:25 +00:00
committed by PyTorch MergeBot
parent 4625ecb858
commit 3f4dd9bfa4
5 changed files with 43 additions and 25 deletions

View File

@ -913,6 +913,7 @@ TreeSpec(tuple, None, [*,
# the namedtuple type.
self.assertEqual(spec.context._fields, roundtrip_spec.context._fields)
@unittest.expectedFailure
def test_pytree_custom_type_serialize_bad(self):
class DummyType:
def __init__(self, x, y):