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