contrib.layers.embedding_lookup_unique

tf.contrib.layers.embedding_lookup_unique

tf.contrib.layers.embedding_lookup_unique

embedding_lookup_unique(
    params,
    ids,
    name=None
)

Defined in tensorflow/contrib/layers/python/layers/embedding_ops.py.

Version of embedding_lookup that avoids duplicate lookups.

This can save communication in the case of repeated ids. Same interface as embedding_lookup. Except it supports multi-dimensional ids登录查看完整内容