MCPcopy Index your code
hub / github.com/Turing-Project/WriteGPT / create_initializer

Function create_initializer

LanguageNetwork/GPT2/train/modeling.py:115–117  ·  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

113
114
115def create_initializer(initializer_range=0.02):
116 """Creates a `truncated_normal_initializer` with the given range."""
117 return tf.truncated_normal_initializer(stddev=initializer_range)
118
119
120def _attention_projection_and_transpose(x_flat, batch_size, seq_length, num_attention_heads, size_per_head,

Callers 4

attention_layerFunction · 0.70
residual_mlp_layerFunction · 0.70
embedFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected