-
Notifications
You must be signed in to change notification settings - Fork 26.3k
Closed
Labels
featureA request for a proper, new feature.A request for a proper, new feature.triagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate moduleThis issue has been looked at a team member, and triaged and prioritized into an appropriate module
Description
Motivation
A "structseq" is this weird Python-C API thing used to create namedtuple-like types from C++.
#75915 introduces some logic that ideally would grab all "structseq" classes from torch.return_types and register them as PyTree nodes. However, we didn't know how to actually check if something is a structseq or not (the documentation doesn't provide any helper functions for that).
If possible we should write an API that can check if a type is a "structseq" and then use it in #75915
Metadata
Metadata
Assignees
Labels
featureA request for a proper, new feature.A request for a proper, new feature.triagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate moduleThis issue has been looked at a team member, and triaged and prioritized into an appropriate module