def init_weights(self):
     if self.feat_dim > 0:
         init_module_weights(self.feat_fc, 0.1)
     init_module_weights(self.rnn)
     init_module_weights(self.project_fc, 0.1)
     if not self.tie_weights:
         init_module_weights(self.word_classifier, 0.1)
 def init_weights(self):
     init_module_weights(self.rnn)
 def init_weights(self):
     init_module_weights(self.ctx_fc)
     init_module_weights(self.pi_fc)
     init_module_weights(self.ctx2mu)
     init_module_weights(self.ctx2var)
 def init_weights(self):
     init_module_weights(self.embedding, 1.0)
     init_module_weights(self.linear, 0.1)
 def init_weights(self):
     init_module_weights(self.linear, 0.1)
 def init_weights(self):
     init_module_weights(self.w_query, 0.1)
     init_module_weights(self.w_context, 0.1)
     init_module_weights(self.w_emit, 0.1)
     init_module_weights(self.linear_out, 0.1)
Exemple #7
0
 def _init_weights(self):
     init_module_weights(self.enc2dec_hidden_fc)
Exemple #8
0
 def _init_weights(self):
     init_module_weights(self.unref_fc)
Exemple #9
0
 def _init_weights(self):
     init_module_weights(self.enc2dec_hidden_fc)
     init_module_weights(self.latent_to_bow)
     init_module_weights(self.ctx_fc)
Exemple #10
0
 def _init_weights(self):
     init_module_weights(self.output_fc)
Exemple #11
0
 def _init_weights(self):
     init_module_weights(self.regressor_pipe)
Exemple #12
0
 def _init_weights(self):
     init_module_weights(self.mechanism_embeddings)
     init_module_weights(self.ctx2mech_fc)
     init_module_weights(self.score_bilinear)
     init_module_weights(self.ctx_mech_combine_fc)
     init_module_weights(self.enc2dec_hidden_fc)
Exemple #13
0
 def _init_weights(self):
     init_module_weights(self.classifier_pipe)