srush opened this issue 6 years ago · 1 comments
@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 ?
self.w_param
yeah sounds good