TensorFlow: Test Graph untuk berhitung

From OnnoWiki
Revision as of 17:12, 29 July 2019 by Onnowpurbo (talk | contribs) (Created page with "Ketik python Ketik import tensorflow as tf x = tf.constant(8) y = tf.constant(9) z = tf.multiply(x, y) sess = tf.Session() out_z = sess.run(z) Finally, close the Te...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Ketik

python

Ketik

import tensorflow as tf
x = tf.constant(8)
y = tf.constant(9)
z = tf.multiply(x, y)
sess = tf.Session()
out_z = sess.run(z)
Finally, close the TensorFlow session when you're done:
sess.close()print('The multiplicaiton of x and y: %d' % out_z)



Pranala Menarik