Skip to content

Commit 37ef1f7

Browse files
normanheckscherhunkim
authored andcommitted
Refactor for tensorflow-1.0rc1 (#77)
tf.mul() -> tf.multiply()
1 parent a110113 commit 37ef1f7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

01_linear_regression.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"Y = tf.placeholder(\"float\")\n",
3737
"\n",
3838
"def model(X, w):\n",
39-
" return tf.mul(X, w) # lr is just X*w so this model line is pretty simple\n",
39+
" return tf.multiply(X, w) # lr is just X*w so this model line is pretty simple\n",
4040
"\n",
4141
"w = tf.Variable(0.0, name=\"weights\") # create a shared variable (like theano.shared) for the weight matrix\n",
4242
"y_model = model(X, w)\n",

01_linear_regression.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212

1313
def model(X, w):
14-
return tf.mul(X, w) # lr is just X*w so this model line is pretty simple
14+
return tf.multiply(X, w) # lr is just X*w so this model line is pretty simple
1515

1616

1717
w = tf.Variable(0.0, name="weights") # create a shared variable (like theano.shared) for the weight matrix

0 commit comments

Comments
 (0)