windows下安装TensorFlow
来源:互联网 发布:淘宝千牛自动回复短语 编辑:程序博客网 时间:2024/05/22 13:16
pip install --ignore-installed --upgrade tensorflow
安装后采用如下方式使用
import tensorflow as tf
y_hat = tf.constant(36, name='y_hat')#定义常量,且值为36y = tf.constant(39, name='y') #定义常量,且值为39loss = tf.Variable((y - y_hat)**2, name='loss') #定义变量:lossinit = tf.global_variables_initializer()#添加节点用于初始化所有的变量# the loss variable will be initialized and ready to be computedwith tf.Session() as session: # Create a session and print the output session.run(init) print(session.run(loss))
----------------------------------------------------------------------------
经过实验,推荐深度学习采用ubuntu系统。
阅读全文
0 0
- windows下安装TensorFlow
- windows下安装tensorflow
- Windows下Tensorflow安装
- Tensorflow-Windows下安装
- Windows下 tensorflow安装
- Windows下安装TensorFlow
- Windows 下安装 TensorFlow
- Windows下安装Tensorflow
- Windows下安装TensorFlow
- Windows下安装Tensorflow
- Tensorflow Windows下安装
- Windows下安装TensorFlow
- Windows下安装TensorFlow
- Windows下安装TensorFlow
- Windows下安装TensorFlow
- Windows下TensorFlow安装
- windows下安装TensorFlow
- windows下安装TensorFlow
- LEP环境搭建(linux easy profiling)
- ajax提交整个form表单
- 给深度学习入门者的Python快速教程
- Spring(3)配置文件没有提示的问题
- JavaScript计算机和购物总价和
- windows下安装TensorFlow
- c++中的vector
- 冒泡排序java
- nginx+tomcat+redis(session共享)实现负载均衡,动静分离
- 自定义view圆滑动
- Codeforces 875C National Property 题解
- 【linux】linux定时监控和维护特定服务
- MyBatis入门到精通
- ubuntu安装shadowsocks-qt5只需要三行命令