Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ab99a65 + 392a667 commit ca907abCopy full SHA for ca907ab
examples/2_BasicModels/linear_regression.py
@@ -33,7 +33,7 @@
33
b = tf.Variable(rng.randn(), name="bias")
34
35
# Construct a linear model
36
-pred = tf.add(tf.mul(X, W), b)
+pred = tf.add(tf.multiply(X, W), b)
37
38
# Mean squared error
39
cost = tf.reduce_sum(tf.pow(pred-Y, 2))/(2*n_samples)
0 commit comments