TensorFlow 1.9 Officially Supports the Raspberry Pi

Forums IoTStack News (IoTStack) TensorFlow 1.9 Officially Supports the Raspberry Pi

Viewing 0 reply threads
  • Author
    Posts
    • #23657
      Curator 1 for Blogs
      Keymaster
      • Topic 369
      • Replies 5
      • posts 374
        @curator1

        [ See previous post and replies

        Google is making a fast specialized TPU chip for edge devices  

        ]

        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.

         

    Viewing 0 reply threads
    • You must be logged in to reply to this topic.