MCPcopy Create free account
hub / github.com/apache/singa / embedding

Function embedding

python/singa/autograd.py:5715–5722  ·  view source on GitHub ↗

Produces an embedding operator. Args: Returns: the output Tensor.

(x, w)

Source from the content-addressed store, hash-verified

5713
5714
5715def embedding(x, w):
5716 """
5717 Produces an embedding operator.
5718 Args:
5719 Returns:
5720 the output Tensor.
5721 """
5722 return Embedding()(x, w)[0]
5723
5724
5725class Erf(Operator):

Callers 1

embedding_helperMethod · 0.85

Calls 1

EmbeddingClass · 0.70

Tested by 1

embedding_helperMethod · 0.68