MCPcopy Index your code
hub / github.com/tensorpack/tensorpack / rms

Function rms

tensorpack/tfutils/symbolic_functions.py:26–35  ·  view source on GitHub ↗

Returns: root mean square of tensor x.

(x, name=None)

Source from the content-addressed store, hash-verified

24
25# for internal use only
26def rms(x, name=None):
27 """
28 Returns:
29 root mean square of tensor x.
30 """
31 if name is None:
32 name = x.op.name + '/rms'
33 with tfv1.name_scope(None): # name already contains the scope
34 return tf.sqrt(tf.reduce_mean(tf.square(x)), name=name)
35 return tf.sqrt(tf.reduce_mean(tf.square(x)), name=name)
36
37
38# don't hurt to leave it here

Callers 3

add_tensor_summaryFunction · 0.85
_mapperMethod · 0.85
print_statFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected