From 0e867d3e097ea59623242102a76350cb46652c4f Mon Sep 17 00:00:00 2001 From: Tony Wang <563726573@qq.com> Date: Sat, 29 Jul 2017 00:34:54 +0800 Subject: [PATCH 1/3] Changed tf.mul to tf.multiply tensorflow updated library --- train/1-multiply.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/train/1-multiply.py b/train/1-multiply.py index 33c9844..335a9a3 100644 --- a/train/1-multiply.py +++ b/train/1-multiply.py @@ -4,7 +4,7 @@ def run_training(): x = tf.placeholder("float") # Create a placeholder 'x' w = tf.Variable(5.0, name="weights") - y = tf.mul(w, x) + y = tf.multiply(w, x) with tf.Session() as sess: # Add the variable initializer Op. @@ -18,4 +18,4 @@ def main(_): run_training() if __name__ == '__main__': - tf.app.run() \ No newline at end of file + tf.app.run() From 4d1127a543aee996ecad7937fbbb3b14a711c8aa Mon Sep 17 00:00:00 2001 From: Tony Wang <563726573@qq.com> Date: Sat, 29 Jul 2017 20:16:30 +0800 Subject: [PATCH 2/3] Changed ft.mul to tf.multiply Tensorflow updated library and tf.mul no longer works. --- train/3-output.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/train/3-output.py b/train/3-output.py index a277197..dc52ca3 100644 --- a/train/3-output.py +++ b/train/3-output.py @@ -10,7 +10,7 @@ def run_training(): x = tf.placeholder("float") # Create a placeholder 'x' w = tf.Variable(5.0, name="weights") - y = tf.mul(w, x) + y = tf.multiply(w, x) with tf.Session() as sess: # Add the variable initializer Op. @@ -29,4 +29,4 @@ def main(_): run_training() if __name__ == '__main__': - tf.app.run() \ No newline at end of file + tf.app.run() From 93eb7f882493b8108f6441171b9c44a40c5652e3 Mon Sep 17 00:00:00 2001 From: Tony Wang <563726573@qq.com> Date: Sat, 29 Jul 2017 20:44:18 +0800 Subject: [PATCH 3/3] Changed tf.mul to tf.multiply --- train/2-input.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/train/2-input.py b/train/2-input.py index 43e87ba..9502018 100644 --- a/train/2-input.py +++ b/train/2-input.py @@ -15,7 +15,7 @@ def run_training(): x = tf.placeholder("float") # Create a placeholder 'x' w = tf.Variable(5.0, name="weights") - y = tf.mul(w, x) + y = tf.multiply(w, x) with tf.Session() as sess: # Add the variable initializer Op. @@ -38,4 +38,4 @@ def main(_): run_training() if __name__ == '__main__': - tf.app.run() \ No newline at end of file + tf.app.run()