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