示例#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)
示例#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)
示例#3
0
 def create_encoder(self, **kwargs):
     return create_seq2seq_encoder(**kwargs)
示例#4
0
 def init_encoder(self, src_dsz, **kwargs):
     kwargs['dsz'] = src_dsz
     return create_seq2seq_encoder(**kwargs)