Sick Gaming
TensorFlow Pi Port Is Strategic Move in Edge Analytics Game - Printable Version

+- Sick Gaming (https://www.sickgaming.net)
+-- Forum: Computers (https://www.sickgaming.net/forum-86.html)
+--- Forum: Linux, FreeBSD, and Unix types (https://www.sickgaming.net/forum-88.html)
+--- Thread: TensorFlow Pi Port Is Strategic Move in Edge Analytics Game (/thread-86003.html)



TensorFlow Pi Port Is Strategic Move in Edge Analytics Game - xSicKxBot - 08-10-2018

TensorFlow Pi Port Is Strategic Move in Edge Analytics Game

<div style="margin: 5px 5% 10px 5%;"><img src="http://www.sickgaming.net/blog/wp-content/uploads/2018/08/tensorflow-pi-port-is-strategic-move-in-edge-analytics-game.jpg" width="1822" height="1004" title="" alt="" /></div><div><div><img src="http://www.sickgaming.net/blog/wp-content/uploads/2018/08/tensorflow-pi-port-is-strategic-move-in-edge-analytics-game.jpg" class="ff-og-image-inserted" /></div>
<p><span><span>Google’s recent </span><a href="https://medium.com/tensorflow/tensorflow-1-9-officially-supports-the-raspberry-pi-b91669b0aa0"><span>announcement</span></a><span> that it had ported its </span><span>open source </span><a href="https://www.tensorflow.org/"><span>TensorFlow</span></a><span> </span><span>machine intelligence (ML) library for neural networking </span><span>to the Raspberry Pi was the latest in a series of chess moves from Google and its chief AI rival Nvidia to win the hearts and keyboards of embedded Linux developers. The competition is a part of a wider battle with Amazon, Microsoft, Intel, and others to bring cloud analytics to the edge in IoT networks to reduce latency, increase reliability, and improve security.</span></span></p>
<p><span><span>Thanks to a collaboration with the Raspberry Pi Foundation, the latest </span><a href="https://github.com/tensorflow/tensorflow/releases/tag/v1.9.0"><span>TensorFlow 1.9</span></a><span> release can now be installed on Raspberry Pi 2 or 3 SBCs from pre-built binaries using Python’s pip package system. </span><a href="https://www.tensorflow.org/install/install_raspbian"><span>Raspbian 9 users can install it</span></a><span> with two simple commands. </span></span></p>
<p><span><span>Integrating TensorFlow models into an embedded project offers further challenges. Yet, as Google has shown with its AIY Projects kits for the Raspberry Pi, you can add a bit of ML smarts in Raspberry Pi based robots, vision systems, and other embedded gear without a huge learning curve. </span></span></p>
<p><span><span>The TensorFlow port should be particularly welcome in the Raspberry Pi educational community. As the RPi Foundation’s Eben Upton wrote in a </span><a href="https://twitter.com/ebenupton"><span>congratulatory tweet</span></a><span> about the “massive news,” the TensorFlow port will enable “cool machine-learning educational content.”</span></span></p>
<p><span><span>TensorFlow was essentially born to run on Linux, but on servers or desktops, not on a modest SBC like the Raspberry Pi. It now runs on all major server and desktop platforms and has been ported to Android and iOS. Yet, the Raspberry Pi was a particularly gnarly challenge, writes Google TensorFlow developer Pete Warden in the announcement. It wasn’t even possible until the Raspberry Pi 2 and 3 came along with faster quad-core processors. </span></span></p>
<p><span><span>A year ago, Warden and his team managed to </span><a href="https://petewarden.com/2017/08/20/cross-compiling-tensorflow-for-the-raspberry-pi"><span>cross-compile TensorFlow</span></a><span> on the RPi 3, but it was a slow, complicated, crash-prone process. The new ability to install from pre-built binaries now makes it feasible for a much wider group of developers to join the party.</span></span></p>
<p><span><span>While Google’s AIY Projects was attempting to squeeze a cloud-based platform onto a simple hacker board, its team started with low-cost cardboard constructed kits with add-on boards for connecting with Google Cloud related embedded technologies. These include the </span><a href="http://linuxgizmos.com/google-launches-tensorflow-based-vision-recognition-kit-for-rpi-zero-w/"><span>AIY Vision Kit</span></a><span> for the Raspberry Pi Zero W and WH, which performs TensorFlow-based vision recognition. It incorporates a “VisionBonnet” board with an Intel Myriad 2 neural network accelerator chip. AIY Projects also launched an </span><a href="http://linuxgizmos.com/googles-updated-aiy-vision-and-voice-kits-ship-with-raspberry-pi-zero-wh/"><span>AIY Voice Kit</span></a><span> with the same RPi Zero WH target that lets you build a voice-controlled speaker with Google Assistant support.</span></span></p>
<p><span><span>As noted in this </span><a href="https://blog.hackster.io/a-binary-release-for-tensorflow-on-the-raspberry-pi-cf9332c5e448"><span>Hackster.io</span></a><span> post about the port from Alasdair Allan, the AIY Vision Kit has struggled to perform well when operating locally. The Voice Kit has done better due to its greater reliance on Google Cloud.</span></span></p>
<h3><span><span>Google’s Edge TPU accelerator</span></span></h3>
<p><span><span>According to a Warden </span><a href="https://twitter.com/petewarden/status/1025434919135105024"><span>tweet</span></a><span> following the announcement, TensorFlow is not currently tapping the potential ML powers of Broadcom’s VideoCore graphical processing unit, as Nvidia does with its more powerful Pascal GPU. He goes on to suggest that there might be potential for developing a special GPU-related port for the single-core Raspberry Pi Zero boardlets, but for now there’s sufficient power on the Pi’s four CPU cores. Speaking of potential hooks to the GPU, he writes: “</span><span>With quad-core CPUs and Neon on the latest Pi’s, there’s not as big an advantage, though it’s still interesting on Pi Zeroes.”</span></span></p>
<p><span><span>Another interpretation is that Google is skipping the GPU because it expects Raspberry Pi users and other embedded developers to tap its recently announced, Linux-friendly </span><a href="http://linuxgizmos.com/google-tips-ai-co-processor-and-iot-framework-for-linux-and-android-things-gateways/"><span>Edge TPU</span></a><span> ML accelerator chip for TensorFlow. The Edge TPU will be offered this fall along with an NXP i.MX8M based Linux development kit and an </span><a href="http://linuxgizmos.com/googles-edge-tpu-ai-chip-will-run-on-a-usb-stick-computer/"><span>Edge TPU Accelerator</span></a><span> USB dongle that can fit into any Linux computer including the Pi.</span></span></p>
<p><span><span>The Edge TPU is a lightweight, embedded version of its enterprise focused </span><a href="https://cloud.google.com/tpu/"><span>Cloud Tensor Processing Unit</span></a><span> (Cloud TPU) AI co-processor. In conjunction with a new Cloud IoT Edge stack, the chip is designed to run TensorFlow Lite ML models on Arm Linux- or Android Things based IoT gateways connected to Google Cloud services. </span></span></p>
<h3><span><span>Nvidia launches industrial TX2i and octa-core Xavier Jetson modules</span></span></h3>
<p><span><span>Nvidia is farther along in its attempt to bring its Pascal/CUDA-related AI technologies to embedded Linux developers. Its Jetson TX1 and TX2 computer-on-modules have found widespread adoption in embedded Linux projects for ML applications. The Jetson TX2 recently appeared in devices including Axiomtek’s </span><a href="http://linuxgizmos.com/compact-rugged-box-computer-runs-ubuntu-on-jetson-tx2/"><span>eBOX560-900-FL</span></a><span> box computer, as well as an upcoming, FPGA-equipped </span><a href="http://linuxgizmos.com/sdr-meets-ai-in-a-mash-up-of-jetson-tx2-artix-7-and-2x2-mimo/"><span>AIR-T</span></a><span> Mini-ITX board for AI-enabled SDR applications.</span></span></p>
<p><span><span>In recent months, Nvidia has begun shipping a </span><a href="http://linuxgizmos.com/rugged-new-jetson-tx2i-module-gains-carrier-support/"><span>Jetson TX2i</span></a><span> spin on the TX2 aimed at industrial applications. The TX2i adds </span><span>-40 to 85°C support, vibration resistance, and a wider humidity range</span><span>. There’s also s</span><span>upport for ECC RAM, a 10-year operating supply lifecycle, and a 3-year warranty.</span></span></p>
<p><span><span>Like the Jetson TX2, the TX2i provides dual </span><span>high-end Denver 2 Arm cores, a quad-core, Cortex-A57 block, and a 256-core Pascal GPU with CUDA libraries for running AI and ML algorithms. Like the TX2, the module also supplies 8GB of LPDDR4 RAM, 32GB of eMMC 5.1, and 802.11ac WiFi and Bluetooth. </span></span></p>
<p><span><span>Existing Jetson carrier boards work with the TX2i. Aetina just announced an </span><a href="http://linuxgizmos.com/rugged-jetson-tx2-carrier-hosts-up-to-six-hd-cameras-for-cars-bots-and-drones/"><span>ACE-N310</span></a><span> carrier for all the Jetson modules that matches the TX2i’s industrial temperature support and supports six simultaneous HD cameras.</span></span></p>
<p><span><span>The Jetson TX2 was recently joined by a more powerful new </span><a href="http://linuxgizmos.com/tiny-carrier-unleashes-nvidia-xavier-power-for-robotics-and-ai/"><span>Jetson Xavier</span></a><span> module. </span><span>The Xavier core, which has already been used in Nvidia’s </span><a href="http://linuxgizmos.com/nvidias-latest-drive-px-car-computer-offers-level-5-autonomy/"><span>Drive PX Pegasus</span></a><span> autonomous car computer board, features 8x ARMv8.2 cores and a high-end, 512-core Nvidia Volta GPU with tensor cores. It also provides 2x NVDLA deep learning engines and a 7-way VLIW vision chip. The Xavier ships with 16GB 256-bit LPDDR4 and 32GB eMMC 5.1.</span></span></p>
<p><span><span>Google and Nvidia are not alone in their campaigns to bring cloud AI analytics to the edge. For example, Intel’s </span><a href="http://linuxgizmos.com/movidius-ai-acceleration-technology-comes-to-a-mini-pcie-card/"><span>Movidius 2</span></a><span> neural network accelerator chip is finding widespread adoption. Presumably, however, any future AIY Projects kits will replace the Movidius 2 with the Edge TPU.</span></span><br /><span><span>Although Amazon has yet to reveal a neural accelerator of its own, it is perhaps still the leader in the larger race for IoT edge analytics due to the popularity of its AWS IoT stack and its </span><a href="http://linuxgizmos.com/amazon-releases-aws-greengrass-for-local-iot-processing-on-linux-devices/"><span>AWS Greengrass</span></a><span> software for local processing of cloud analytics software on Linux devices. Meanwhile, Microsoft is also targeting the IoT space with its Arm Linux based </span><a href="http://linuxgizmos.com/why-microsoft-chose-linux-for-azure-sphere/"><span>Azure Sphere</span></a><span> distribution and IoT framework. Azure Sphere will initially target lower-power applications running on Cortex-A7 chips. Future versions, however, may be more robust and may include a homegrown AI component.</span></span></p>
<p><span><span>Join us at </span><a href="https://events.linuxfoundation.org/events/elc-openiot-europe-2018/"><span>Open Source Summit + Embedded Linux Conference Europe</span></a><span> in Edinburgh, UK on October 22-24, 2018, for 100+ sessions on Linux, Cloud, Containers, AI, Community, and more.</span></span></p>
</div>