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

Function norm

examples/tensorflow/decoder/utils/decoder.py:28–30  ·  view source on GitHub ↗

Layer normalizes :obj:`inputs`.

(inputs)

Source from the content-addressed store, hash-verified

26 return use_batch_major_op_cache, x
27
28def norm(inputs):
29 """Layer normalizes :obj:`inputs`."""
30 return tf.contrib.layers.layer_norm(inputs, begin_norm_axis=-1)
31
32
33def split_heads(inputs, num_heads):

Callers 1

tf_decoderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected