Skip to content

Commit 9c28457

Browse files
authored
Merge pull request MorvanZhou#48 from codemayq/master
修正了参数名不对应的问题
2 parents 978457c + b35d210 commit 9c28457

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tensorflowTUT/tf20_RNN2.2/full_code.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ def compute_cost(self):
100100
name='average_cost')
101101
tf.summary.scalar('cost', self.cost)
102102

103-
def ms_error(self, y_target, y_pre):
104-
return tf.square(tf.subtract(y_target, y_pre))
103+
def ms_error(self, labels, logits):
104+
return tf.square(tf.subtract(labels, logits))
105105

106106
def _weight_variable(self, shape, name='weights'):
107107
initializer = tf.random_normal_initializer(mean=0., stddev=1.,)

0 commit comments

Comments
 (0)