tensorflow anzhuang
来源:互联网 发布:c语言函数库百度文库 编辑:程序博客网 时间:2024/06/10 17:33
安装步骤:
1、sudo apt-get install python-pip python-dev python-virtualenv
2、virtualenv --system-site-packages ~/tensorflow
3、cd tensorflow
4、source bin/activate # If using bash
5、(tensorflow)$ pip install --upgrade tensorflow-0.5.0-cp27-none-linux_x86_64.whl
测试:
1、打开终端输入cd tensorflow
2、source bin/activate
2.5 cd ..
3、python
4、输入python后输入以下示例
>>> import tensorflow as tf
>>> hello = tf.constant('Hello, TensorFlow!')
>>> sess = tf.Session()
>>> print sess.run(hello)
Hello, TensorFlow!
>>> a = tf.constant(10)
>>> b = tf.constant(32)
>>> print sess.run(a+b)
42
>>>
5、测试成功接下来首先退出python 按快捷键Ctrl+D
6、再退出tensorflow 在命令行输入命令:deactivate
0 0
- tensorflow anzhuang
- linux anzhuang
- hadoop anzhuang
- Fedora anzhuang vmware
- python---kali linux anzhuang pexpect
- gdb和gdbserver的介绍与anzhuang
- tensorflow
- TensorFlow
- TensorFlow
- tensorflow
- tensorflow
- tensorflow
- Tensorflow
- Tensorflow
- tensorFlow
- tensorflow
- Tensorflow
- TensorFlow
- Android--菜单menu
- Java多线程之线程同步
- linux之wc命令
- C/C++ socket编程教程之三:Windows下的socket程序
- Android之属性动画Animator
- tensorflow anzhuang
- pycharm注册码
- ListView实现返回顶部
- 总结过往
- LeetCode Sqrt(x) 整数平方根 java
- html5学习笔记(-),html5新特性介绍教程
- web访问时序图
- 笔试选择题二十四
- 无线渗透小试