什么是与Tensorflow等价的NumPy代码 embedding_lookup 作用
embedding_lookup
特别是,NumPy等价于以下代码块的最后一行是什么?
words = tf.placeholder(tf.int64, name='words') ... embedding = tf.nn.embedding_lookup(embedding_params, words[:, i])
我真的不确定是什么 嵌入查找 实际上是这样。
嵌入查找
tf.nn.embedding_lookup 基本上像 tf.gather