AttnGAN icon indicating copy to clipboard operation
AttnGAN copied to clipboard

RNN parameters initilization

Open venuszhou opened this issue 6 years ago • 0 comments

hello, in the code 'model.py', you said "# Do not need to initialize RNN parameters, which have been initialized" like below, why do like this? any help

def init_weights(self): initrange = 0.1 self.encoder.weight.data.uniform_(-initrange, initrange) # Do not need to initialize RNN parameters, which have been initialized # http://pytorch.org/docs/master/modules/torch/nn/modules/rnn.html#LSTM # self.decoder.weight.data.uniform(-initrange, initrange) # self.decoder.bias.data.fill_(0)

venuszhou avatar Feb 19 '19 06:02 venuszhou