Created
July 16, 2019 16:16
-
-
Save nithyadurai87/dbbe17d6036ea6188d9e581c3cbb2af6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import tensorflow as tf | |
| x1 = tf.get_variable("a", dtype=tf.int32, initializer=tf.constant([5])) | |
| y1 = tf.get_variable("b", dtype=tf.int32, initializer=tf.constant([6])) | |
| c = tf.constant([5], name ="c") | |
| f = tf.multiply(x1, y1) + tf.pow(x1, 2) + y1 + c | |
| with tf.Session() as s: | |
| summary_writer = tf.summary.FileWriter('tensorboard_example',s.graph) | |
| s.run(tf.global_variables_initializer()) | |
| print (s.run(f)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment