Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example of Tensor Subclasses with nn.Modules? #17

Open
zou3519 opened this issue Mar 24, 2022 · 1 comment
Open

Example of Tensor Subclasses with nn.Modules? #17

zou3519 opened this issue Mar 24, 2022 · 1 comment

Comments

@zou3519
Copy link
Collaborator

zou3519 commented Mar 24, 2022

Some folks (https://github.com/microsoft/mup) want to attach some metadata to Parameters in nn.Module. I realize we don't have an idiom for creating an nn.Module with some user-defined subclass (but I guess users can just replace their nn.Module parameters with their own subclasses)

@albanD
Copy link
Owner

albanD commented Mar 25, 2022

cc @jbschlosser

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants