MCPcopy Create free account
hub / github.com/NVIDIA/FasterTransformer / create_initializer

Function create_initializer

examples/tensorflow/decoder/utils/common.py:247–248  ·  view source on GitHub ↗
(initializer_range=0.02, data_type=tf.float32)

Source from the content-addressed store, hash-verified

245 self.top_p = top_p
246
247def create_initializer(initializer_range=0.02, data_type=tf.float32):
248 return tf.truncated_normal_initializer(stddev=initializer_range, dtype=data_type)
249
250def _get_shape_invariants(tensor):
251 """Returns the shape of the tensor but sets middle dims to None."""

Callers 3

tf_decoderFunction · 0.90
_project_and_splitFunction · 0.90
decoding_bodyFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected