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