Skip to content

Commit e500a82

Browse files
committed
fixed condition
1 parent 9842501 commit e500a82

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lab-04-3-multi_variable_linear_regression_feed.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
hypothesis = tf.matmul(x, W) + b
1515

1616
# Simplified cost function
17-
with tf.control_dependencies(y.shape.assert_same_rank(y)):
17+
with tf.control_dependencies(y.shape.assert_same_rank(hypothesis)):
1818
cost = tf.reduce_mean(tf.square(hypothesis - y))
1919

2020
# Minimize

0 commit comments

Comments
 (0)