Skip to content

What precisely is required for isinstance checks to succeed against data-Protocols? #1941

Discussion options

You must be logged in to vote

So, the issue seems to be that torch does not write an entry into __dict__, but uses different dictionaries for buffers / parameters / sub-modules.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by randolf-scholz
Comment options

You must be logged in to vote
1 reply
@randolf-scholz
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants