MCPcopy Index your code
hub / github.com/brightmart/text_classification / create_initializer

Function create_initializer

a00_Bert/bert_modeling.py:387–389  ·  view source on GitHub ↗

Creates a `truncated_normal_initializer` with the given range.

(initializer_range=0.02)

Source from the content-addressed store, hash-verified

385
386
387def create_initializer(initializer_range=0.02):
388 """Creates a `truncated_normal_initializer` with the given range."""
389 return tf.truncated_normal_initializer(stddev=initializer_range)
390
391
392def embedding_lookup(input_ids,

Callers 5

__init__Method · 0.85
embedding_lookupFunction · 0.85
embedding_postprocessorFunction · 0.85
attention_layerFunction · 0.85
transformer_modelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected