MCPcopy Create free account
hub / github.com/ACL2020SpellGCN/SpellGCN / embedding_lookup

Function embedding_lookup

modeling.py:379–424  ·  view source on GitHub ↗

Looks up words embeddings for id tensor. Args: input_ids: int32 Tensor of shape [batch_size, seq_length] containing word ids. vocab_size: int. Size of the embedding vocabulary. embedding_size: int. Width of the word embeddings. initializer_range: float. Embedding initializat

(input_ids,
                     vocab_size,
                     embedding_size=128,
                     initializer_range=0.02,
                     word_embedding_name="word_embeddings",
                     use_one_hot_embeddings=False)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

__init__Method · 0.85

Calls 2

create_initializerFunction · 0.85
get_shape_listFunction · 0.85

Tested by

no test coverage detected