TensorFlow学习笔记(一)

来源:互联网 发布:淘宝开通子账号未认证 编辑:程序博客网 时间:2024/04/30 08:28

1. 安装

真正从零开始,TensorFlow 详细安装入门图文教程:
http://www.leiphone.com/news/201606/ORlQ7uK3TIW8xVGF.html

2. 试用

第一个Demo: test.py

import tensorflow as tf

hello = tf.constant(‘Hello, TensorFlow!’)
sess = tf.Session()
print sess.run(hello)

a = tf.constant(10)
b = tf.constant(32)
print sess.run(a+b)

0 0
原创粉丝点击