TensorFlow: Test Graph untuk berhitung: Difference between revisions

From OnnoCenterWiki
Jump to navigationJump to search
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..."
 
Onnowpurbo (talk | contribs)
No edit summary
Line 11: Line 11:
  sess = tf.Session()
  sess = tf.Session()
  out_z = sess.run(z)
  out_z = sess.run(z)
Finally, close the TensorFlow session when you're done:
  sess.close()
  sess.close()print('The multiplicaiton of x and y: %d' % out_z)
print('The multiplicaiton of x and y: %d' % out_z)




Line 18: Line 18:


==Pranala Menarik==
==Pranala Menarik==
* [[TensorFlow]]

Revision as of 10: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)



Pranala Menarik