Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ca907ab

Browse files
Merge pull request aymericdamien#113 from xiaodepei/patch-1
Update linear_regression.py
2 parents ab99a65 + 392a667 commit ca907ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/2_BasicModels/linear_regression.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
b = tf.Variable(rng.randn(), name="bias")
3434

3535
# Construct a linear model
36-
pred = tf.add(tf.mul(X, W), b)
36+
pred = tf.add(tf.multiply(X, W), b)
3737

3838
# Mean squared error
3939
cost = tf.reduce_sum(tf.pow(pred-Y, 2))/(2*n_samples)

0 commit comments

Comments
 (0)