MCPcopy Create free account
hub / github.com/MorvanZhou/tutorials / ms_error

Method ms_error

tensorflowTUT/tf20_RNN2.2/full_code.py:104–105  ·  view source on GitHub ↗
(labels, logits)

Source from the content-addressed store, hash-verified

102
103 @staticmethod
104 def ms_error(labels, logits):
105 return tf.square(tf.subtract(labels, logits))
106
107 def _weight_variable(self, shape, name='weights'):
108 initializer = tf.random_normal_initializer(mean=0., stddev=1.,)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected