turtlebot3-burger_150.png
turtlebot3-waffle-pi_150.png
turtlebot3-arm_150.png
walking-y2_150.png
turbot3-multi_150.png
turbot3-dl-ros1_150.png
turbot3-ai.png
turbot3-dl-ros2_150.png
turbot3-slam_150.png
turbot3-arm_150.png
turtlebot4-lite_150.png
turtlebot4-pro_150.png
turbot4-dl_150.png
turbot4-ai_150.png
aidriving-racebot_150.png
aidriving-autodrive_150.png
turtlebot-arm_150.png
openmanipulator-x_150.png
Home » Turbot-DL入门教程 » Turbot-DL入门教程篇-深度学习框架TensorFlow验证例子

Turbot-DL入门教程篇-深度学习框架TensorFlow验证例子

纠错,疑问,交流: 请进入讨论区请点击进入页面,扫码加入微信群或Q群进行交流

获取最新文章: 扫一扫加入“创客智造”公众号

Turbot-DL入门教程篇-深度学习框架TensorFlow验证例子

说明:

  • 介绍如何在turbot-DL上测试深度学习框架TensorFlow验证例子

环境:

  • Python3.5.2

确认版本:

  • 确认目前的版本
$ python3 -V
  • 如果不是Python3.5.2版本,则切换版本
$ sudo update-alternatives --config python3

There are 2 choices for the alternative python3 (providing /usr/bin/python3).

  Selection    Path                Priority   Status
------------------------------------------------------------
* 0            /usr/bin/python3.6   2         auto mode
  1            /usr/bin/python3.5   1         manual mode
  2            /usr/bin/python3.6   2         manual mode

Press <enter> to keep the current choice[*], or type selection number: 1
  • 验证
$ python3 -V

Python 3.5.2

测试:

  • 编辑测试例子:
$ vim test.py
  • 内容如下:
#!/usr/bin/env python 

import tensorflow as tf
hello = tf.constant('Hello, TensorFlow!')
sess = tf.Session()
print(sess.run(hello))
  • 效果如下:
$ chmod +x test.py
$ python test.py

...................
Hello, TensorFlow!

纠错,疑问,交流: 请进入讨论区请点击进入页面,扫码加入微信群或Q群进行交流

获取最新文章: 扫一扫加入“创客智造”公众号


标签: turbot-dl入门教程篇