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

Dealing with nn.Parameter #16

Open
srush opened this issue Jan 29, 2019 · 1 comment
Open

Dealing with nn.Parameter #16

srush opened this issue Jan 29, 2019 · 1 comment

Comments

@srush
Copy link
Contributor

srush commented Jan 29, 2019

@da03

Now that we have ntorch.nn what if we overload some of the parameter functions?

class MyMod(ntorch.nn.Module):
...

And then internally if you do

self.register_named_parameter("w", ntorch.tensor())

it makes a self.w_param ?

@da03
Copy link
Contributor

da03 commented Jan 29, 2019

yeah sounds good

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