Esempio n. 1
0
 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)
Esempio n. 2
0
 def init_weights(self):
     init_module_weights(self.rnn)
Esempio n. 3
0
 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)
Esempio n. 4
0
 def init_weights(self):
     init_module_weights(self.embedding, 1.0)
     init_module_weights(self.linear, 0.1)
Esempio n. 5
0
 def init_weights(self):
     init_module_weights(self.linear, 0.1)
Esempio n. 6
0
 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)
Esempio n. 7
0
 def _init_weights(self):
     init_module_weights(self.enc2dec_hidden_fc)
Esempio n. 8
0
 def _init_weights(self):
     init_module_weights(self.unref_fc)
Esempio n. 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)
Esempio n. 10
0
 def _init_weights(self):
     init_module_weights(self.output_fc)
Esempio n. 11
0
 def _init_weights(self):
     init_module_weights(self.regressor_pipe)
Esempio n. 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)
Esempio n. 13
0
 def _init_weights(self):
     init_module_weights(self.classifier_pipe)