From eeba07eeca9e2224f6572fc4644e8fbe9fda96b3 Mon Sep 17 00:00:00 2001 From: memoryjs Date: Wed, 24 May 2017 15:14:08 +0800 Subject: [PATCH] tf.multiply ---> tf.mul y = tf.multiply(a, b) # multiply the symbolic variables can not be runed in my computer maybe y = tf.mul(a, b) # multiply the symbolic variables is better --- 00_multiply.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/00_multiply.py b/00_multiply.py index c314091..562277b 100755 --- a/00_multiply.py +++ b/00_multiply.py @@ -5,7 +5,7 @@ a = tf.placeholder("float") # Create a symbolic variable 'a' b = tf.placeholder("float") # Create a symbolic variable 'b' -y = tf.multiply(a, b) # multiply the symbolic variables +y = tf.mul(a, b) # multiply the symbolic variables with tf.Session() as sess: # create a session to evaluate the symbolic expressions print("%f should equal 2.0" % sess.run(y, feed_dict={a: 1, b: 2})) # eval expressions with parameters for a and b