def call(self, inputs):
    embeddings = tf.nn.embedding_lookup(self.embeddings, inputs)
    if self._hidden_dim:
        embeddings = self._project_layer(embeddings)
    return embeddings
def call(self, inputs):
    embeddings = tf.nn.embedding_lookup(self.embeddings, inputs)
    if self._hidden_dim:
        embeddings = self._project_layer(embeddings)
    return embeddings