Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 299 Bytes

HelloWorld.md

File metadata and controls

26 lines (17 loc) · 299 Bytes

一个简单的Hello World “TensorFlow”程序

1.导入库

import tensorflow as tf

2.创建一个常量

hello = tf.constant('Hello, TensorFlow')

3.新建一个Session(会话)

sess = tf.Session()

4.运行计算

print(sess.run(hello))