View source: R/attention-utils.R
emb Tensor with shape [..., depth]
1 | embedding_to_padding(emb)
|
Returns: a float Tensor with shape [...]. Each element is 1 if its corresponding embedding vector is all zero, and is 0 otherwise.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.