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

Method __init__

modeling.py:130–231  ·  view source on GitHub ↗

Constructor for BertModel. Args: config: `BertConfig` instance. is_training: bool. true for training model, false for eval model. Controls whether dropout will be applied. input_ids: int32 Tensor of shape [batch_size, seq_length]. input_mask: (optional) int32 Ten

(self,
               config,
               is_training,
               input_ids,
               input_mask=None,
               token_type_ids=None,
               use_one_hot_embeddings=False,
               scope=None)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 7

get_shape_listFunction · 0.85
embedding_lookupFunction · 0.85
embedding_postprocessorFunction · 0.85
transformer_modelFunction · 0.85
get_activationFunction · 0.85
create_initializerFunction · 0.85

Tested by

no test coverage detected