最佳答案
tf.nn.embedding_lookup(params, ids, partition_strategy='mod', name=None)
I cannot understand the duty of this function. Is it like a lookup table? Which means to return the parameters corresponding to each id (in ids)?
For instance, in the skip-gram
model if we use tf.nn.embedding_lookup(embeddings, train_inputs)
, then for each train_input
it finds the correspond embedding?