in encoder.py [0:0]
def embd(X, ndim, scope='embedding'):
with tf.variable_scope(scope):
embd = tf.get_variable(
"w", [hps.nvocab, ndim], initializer=load_params)
h = tf.nn.embedding_lookup(embd, X)
return h