Skip to content

Commit d1ba2ef

Browse files
generatedunixname499836121facebook-github-bot
authored andcommitted
Revert "add APIs to determine a class is a namedtuple or PyStructSequence (#113257)"
Summary: This reverts commit f08146b67bab331f7bdc9fa247f526f6e60a7190. Reverted pytorch/pytorch#113257 on behalf of https://github.com/jovianjaison due to breaking internal builds ([comment](pytorch/pytorch#113257 (comment))) Differential Revision: D70903497 fbshipit-source-id: 8e6cc0702ff8498c4a6a5e6623a9cdd188e063c7
1 parent f291d7b commit d1ba2ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

userbenchmark/dynamo/dynamobench/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1419,7 +1419,7 @@ def load(cls, model, example_inputs):
14191419
# see https://github.com/pytorch/pytorch/issues/113029
14201420
example_outputs = copy.deepcopy(model)(*example_args, **example_kwargs)
14211421

1422-
if pytree.is_namedtuple_instance(example_outputs):
1422+
if pytree._is_namedtuple_instance(example_outputs):
14231423
typ = type(example_outputs)
14241424
pytree._register_namedtuple(
14251425
typ,

0 commit comments

Comments
 (0)