MCPcopy Index your code
hub / github.com/ACL2020SpellGCN/SpellGCN / embedding_postprocessor

Function embedding_postprocessor

modeling.py:427–520  ·  view source on GitHub ↗

Performs various post-processing on a word embedding tensor. Args: input_tensor: float Tensor of shape [batch_size, seq_length, embedding_size]. use_token_type: bool. Whether to add embeddings for `token_type_ids`. token_type_ids: (optional) int32 Tensor of shape [batch_size, se

(input_tensor,
                            use_token_type=False,
                            token_type_ids=None,
                            token_type_vocab_size=16,
                            token_type_embedding_name="token_type_embeddings",
                            use_position_embeddings=True,
                            position_embedding_name="position_embeddings",
                            initializer_range=0.02,
                            max_position_embeddings=512,
                            dropout_prob=0.1)

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.85
create_initializerFunction · 0.85
layer_norm_and_dropoutFunction · 0.85

Tested by

no test coverage detected