Exemplo n.º 1
0
 def init_encoder(self, input_sz, **kwargs):
     # This is a hack since TF never needs this one, there is not a general constructor param, so shoehorn
     kwargs['dsz'] = input_sz
     return create_seq2seq_encoder(**kwargs)
Exemplo n.º 2
0
 def init_encoder(self, input_sz, **kwargs):
     # This is a hack since TF never needs this one, there is not a general constructor param, so shoehorn
     kwargs['dsz'] = input_sz
     return create_seq2seq_encoder(**kwargs)
Exemplo n.º 3
0
 def create_encoder(self, **kwargs):
     return create_seq2seq_encoder(**kwargs)
Exemplo n.º 4
0
 def init_encoder(self, src_dsz, **kwargs):
     kwargs['dsz'] = src_dsz
     return create_seq2seq_encoder(**kwargs)