MCPcopy Create free account
hub / github.com/YunwenTechnology/QueryGeneration / embed

Function embed

train/modeling.py:243–309  ·  view source on GitHub ↗

reur and position embeddings :param input_ids: int Tensor of shape [batch_size, seq_length]. :param vocab_size: number of words in vocab :param embedding_size: dimensionality of the embedding :param position_offset: aka number of cached tokens. :param initializer_range: float. Ra

(input_ids,
          vocab_size,
          embedding_size,
          position_offset=0,
          initializer_range=0.02,
          max_position_embeddings=512,
          use_one_hot_embeddings=True)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

__init__Method · 0.85

Calls 3

get_shape_listFunction · 0.90
layer_normFunction · 0.90
create_initializerFunction · 0.85

Tested by

no test coverage detected