Difference between revisions of "TensorFlow: Test Graph untuk berhitung"
Jump to navigation
Jump to search
Onnowpurbo (talk | contribs) |
Onnowpurbo (talk | contribs) |
||
| Line 13: | Line 13: | ||
sess.close() | sess.close() | ||
print('The multiplicaiton of x and y: %d' % out_z) | print('The multiplicaiton of x and y: %d' % out_z) | ||
| + | quit() | ||
Revision as of 17:13, 29 July 2019
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)
sess.close()
print('The multiplicaiton of x and y: %d' % out_z)
quit()