Difference between revisions of "TensorFlow: Hello World"

From OnnoWiki
Jump to navigation Jump to search
 
Line 8: Line 8:
 
  hello = tf.constant("Hello, TensorFlow!")
 
  hello = tf.constant("Hello, TensorFlow!")
 
  sess=tf.Session()
 
  sess=tf.Session()
  print sess.run(hello)
+
  print(sess.run(hello))
quit()
 
  
 
Akan keluar
 
Akan keluar

Latest revision as of 07:47, 13 August 2019

Ketik

python

Ketik perintah

import tensorflow as tf
hello = tf.constant("Hello, TensorFlow!")
sess=tf.Session()
print(sess.run(hello))

Akan keluar

Hello, TensorFlow!


Pranala Menarik