Skip to content

Commit 191104a

Browse files
committedApr 26, 2017
edit
1 parent 6736c92 commit 191104a

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_pre, y_target):
104-
return tf.square(tf.subtract(y_pre, y_target))
103+
def ms_error(self, y_target, y_pre):
104+
return tf.square(tf.subtract(y_target, y_pre))
105105

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

0 commit comments

Comments
 (0)
Please sign in to comment.