def __init__(self, input_dim, output_dim, dtype='float32', weight_initializer=None, **kwargs):
    super(Embedding, self).__init__(**kwargs)
    self._kwargs = {'input_dim': input_dim, 'output_dim': output_dim, 'dtype': dtype}
    self.weight = self.params.get('weight', shape=(input_dim, output_dim), init=weight_initializer, allow_deferred_init=True)
def __init__(self, input_dim, output_dim, dtype='float32', weight_initializer=None, **kwargs):
    super(Embedding, self).__init__(**kwargs)
    self._kwargs = {'input_dim': input_dim, 'output_dim': output_dim, 'dtype': dtype}
    self.weight = self.params.get('weight', shape=(input_dim, output_dim), init=weight_initializer, allow_deferred_init=True)