singa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <>
Subject [GitHub] [singa] chrishkchris commented on issue #674: Autograd Layer constructor
Date Sun, 12 Apr 2020 00:37:10 GMT
chrishkchris commented on issue #674: Autograd Layer constructor
   > > > I think the Module class is quite similar to Layer, we can think about combining
them together. At present, users can't get params from the Module, they can only get them
from the Layer. If the Layer class is the subclass of Module, this problem will be solved.
   > > 
   > > 
   > > Yes, when we buffer the ops, there won't be any actual run, but all the parameters
size will be obtained after the call function.
   > After calling the constructor of Layer class.
   Constructor might not be enough, because in the case of RNN the CudnnRNNHandle.weight_size
is inferred from the input size. So this can only be obtained from the forward function. FYI,
this is the new Shicong's code in his PR (I guess this issue is for solving this PR problem):

This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:

With regards,
Apache Git Services

View raw message