We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 978457c + b35d210 commit 9c28457Copy full SHA for 9c28457
tensorflowTUT/tf20_RNN2.2/full_code.py
@@ -100,8 +100,8 @@ def compute_cost(self):
100
name='average_cost')
101
tf.summary.scalar('cost', self.cost)
102
103
- def ms_error(self, y_target, y_pre):
104
- return tf.square(tf.subtract(y_target, y_pre))
+ def ms_error(self, labels, logits):
+ return tf.square(tf.subtract(labels, logits))
105
106
def _weight_variable(self, shape, name='weights'):
107
initializer = tf.random_normal_initializer(mean=0., stddev=1.,)
0 commit comments