TreeLSTMSentiment
TreeLSTMSentiment copied to clipboard
What is getParameters() used for?
Looks like nowhere is that called.
getParameters() is use to get weight matrix.
It is intend to override the function parameters() of any pytorch built-in model (see PyTorch: Extract learned weights correctly )
In this code, getParameters() is useful if you want to visualize, or debug
getParameters() call parameters() of each sub-module [self.ix, self.ih, self.fx, self.fh, self.ox, self.oh, self.ux, self.uh]