// FIXME: is this better than the standard init? probably
// FIXME: we need better reset_parameters methods in stdlib
self.encoder.weight.data.uniform_(-initrange, initrange)
self.decoder.bias.data.fill_(0)
self.decoder.weight.data.uniform_(-initrange, initrange)
def __call__(self, hidden, input):
emb = self.encoder(input)