未加星标

TensorFlow 1.9 Officially Supports the Raspberry Pi

字体大小 | |
[系统(linux) 所属分类 系统(linux) | 发布者 店小二05 | 时间 2018 | 作者 红领巾 ] 0人收藏点击收藏

By Pete Warden , Software Engineer


TensorFlow 1.9 Officially Supports the Raspberry Pi
CC Photo by osde8info

When TensorFlow was first launched in 2015, we wanted it to be an “ open source machine learning framework for everyone ”. To do that, we need to run on as many of the platforms that people are using as possible. We’ve long supported linux, MacOS, windows, iOS, and Android, but despite the heroic efforts of many contributors, running TensorFlow on a Raspberry Pi has involved a lot of work. Thanks to a collaboration with the Raspberry Pi Foundation , we’re now happy to say that the latest 1.9 release of TensorFlow can be installed from pre-built binaries using python’s pip package system! If you’re running Raspbian 9 (stretch), you can install it by running these two commands from a terminal:

sudo apt install libatlas-base-dev pip3 install tensorflow

You can then run python3 in a terminal, and use TensorFlow just as you would on any other platform. Here’s a simple hello world example:

# Python import tensorflow as tf tf.enable_eager_execution() hello = tf.constant(‘Hello, TensorFlow!’) print(hello)

If the system outputs the following, then you are ready to begin writing TensorFlow programs:

Hello, TensorFlow!

There are more details on installing and troubleshooting TensorFlow on the Raspberry Pi on the TensorFlow website .

We’re excited about this because the Raspberry Pi is used by many innovative developers, and is also widely used in education to introduce people to programming, so making TensorFlow easier to install will help open up machine learning to new audiences. We’ve already seen platforms like DonkeyCar use TensorFlow and the Raspberry Pi to create self-driving toy cars, and we can’t wait to discover what new projects will be built now that we’ve reduced the difficulty.

Eben Upton , founder of the Raspberry Pi project, says, “It is vital that a modern computing education covers both fundamentals and forward-looking topics. With this in mind, we’re very excited to be working with Google to bring TensorFlow machine learning to the Raspberry Pi platform. We’re looking forward to seeing what fun applications kids (of all ages) create with it,” and we agree!

We’re hoping to see a lot more educational material and tutorials emerge that will help more and more people explore the possibilities of machine learning on such a cost-effective and flexible device.

本文系统(linux)相关术语:linux系统 鸟哥的linux私房菜 linux命令大全 linux操作系统

tags: TensorFlow,Pi,Raspberry,re,We,install
分页:12
转载请注明
本文标题:TensorFlow 1.9 Officially Supports the Raspberry Pi
本站链接:https://www.codesec.net/view/586950.html


1.凡CodeSecTeam转载的文章,均出自其它媒体或其他官网介绍,目的在于传递更多的信息,并不代表本站赞同其观点和其真实性负责;
2.转载的文章仅代表原创作者观点,与本站无关。其原创性以及文中陈述文字和内容未经本站证实,本站对该文以及其中全部或者部分内容、文字的真实性、完整性、及时性,不作出任何保证或承若;
3.如本站转载稿涉及版权等问题,请作者及时联系本站,我们会及时处理。
登录后可拥有收藏文章、关注作者等权限...
技术大类 技术大类 | 系统(linux) | 评论(0) | 阅读(61)