AttnGAN
AttnGAN copied to clipboard
RNN parameters initilization
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)