MCPcopy
hub / github.com/brightmart/albert_zh / create_initializer

Function create_initializer

modeling.py:397–399  ·  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

395
396
397def create_initializer(initializer_range=0.02):
398 """Creates a `truncated_normal_initializer` with the given range."""
399 return tf.truncated_normal_initializer(stddev=initializer_range)
400
401
402def embedding_lookup(input_ids,

Callers 7

__init__Method · 0.70
embedding_lookupFunction · 0.70
embedding_postprocessorFunction · 0.70
attention_layerFunction · 0.70
transformer_modelFunction · 0.70
prelln_transformer_modelFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected