tensorflow_macos | macOS 11.0+ accelerated using Apple | Machine Learning library

 by   apple Shell Version: v0.1alpha3 License: Non-SPDX

kandi X-RAY | tensorflow_macos Summary

kandi X-RAY | tensorflow_macos Summary

tensorflow_macos is a Shell library typically used in Artificial Intelligence, Machine Learning, Tensorflow applications. tensorflow_macos has no bugs, it has no vulnerabilities and it has medium support. However tensorflow_macos has a Non-SPDX License. You can download it from GitHub.

This pre-release delivers hardware-accelerated TensorFlow and TensorFlow Addons for macOS 11.0+. Native hardware acceleration is supported on M1 Macs and Intel-based Macs through Apple’s ML Compute framework.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              tensorflow_macos has a medium active ecosystem.
              It has 3591 star(s) with 310 fork(s). There are 147 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 210 open issues and 51 have been closed. On average issues are closed in 23 days. There are 6 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of tensorflow_macos is v0.1alpha3

            kandi-Quality Quality

              tensorflow_macos has 0 bugs and 0 code smells.

            kandi-Security Security

              tensorflow_macos has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              tensorflow_macos code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              tensorflow_macos has a Non-SPDX License.
              Non-SPDX licenses can be open source with a non SPDX compliant license, or non open source licenses, and you need to review them closely before use.

            kandi-Reuse Reuse

              tensorflow_macos releases are available to install and integrate.
              Installation instructions, examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of tensorflow_macos
            Get all kandi verified functions for this library.

            tensorflow_macos Key Features

            No Key Features are available at this moment for tensorflow_macos.

            tensorflow_macos Examples and Code Snippets

            No Code Snippets are available at this moment for tensorflow_macos.

            Community Discussions

            QUESTION

            Cannot import TensorFlow on Mac M1
            Asked 2022-Mar-23 at 14:05

            I'm trying to run a shell script on Mac OS M1, but it keeps giving me the error:

            ...

            ANSWER

            Answered 2022-Mar-23 at 14:05

            I've been able to address this issue following this guide

            Source https://stackoverflow.com/questions/71573215

            QUESTION

            Error while installing TensorFlow with pip
            Asked 2022-Feb-25 at 21:58

            While I try to install TensorFlow I get this error :

            ...

            ANSWER

            Answered 2022-Feb-02 at 19:41

            I fix this by following Apple Developer Docs: https://developer.apple.com/metal/tensorflow-plugin/

            I uninstall Miniforge

            Source https://stackoverflow.com/questions/70956173

            QUESTION

            Tensorflow Object Detection Api M1 Macbook Conflict Error
            Asked 2021-Nov-12 at 08:20

            Machine: MacBook Air M1 2020

            OS: macOs BigSur 11.4

            Python version of venv: Python 3.8.6

            Tensorflow version: ATF Apple Tensorflow 0.1a3

            Pip version: 21.2.4

            I have installed Tensorflow from github using this guide.

            Now, my pip list is this.

            ...

            ANSWER

            Answered 2021-Sep-07 at 09:57

            I have the same issue installing the Object Detection API for Tensorflow 2 (OD API) from sources on my MacBook Air M1 2020. It starts to lookup/download all available dependencies with very long errors and after several hours the process drains all available RAM and forces the laptop to reboot. I think the problem is with incompatible dependencies for arm64. I tried to build/install OD API for Tensorflow 1 instead and it worked! I successfully trained a model with TensorFlow 2 and GPU enabled.

            Use the tf1 folder when you installing the OD API instead of tf2:

            Source https://stackoverflow.com/questions/68945096

            QUESTION

            Tensorboard Install Fails while Installing Tensorflow in Conda Environment on M1 Mac
            Asked 2021-Apr-29 at 10:53

            I'm trying to install tensorflow on an M1 Mac. I've been trying to follow this tutorial to install the pre release version of tensorflow for Mac. From the pre-release repo:

            This pre-release delivers hardware-accelerated TensorFlow and TensorFlow Addons for macOS 11.0+. Native hardware acceleration is supported on M1 Macs and Intel-based Macs through Apple’s ML Compute framework.

            The pre-release requires Python 3.8, so that's what I set up my conda environment with.

            The tutorial above tries to install a previous version of tensorflow for M1 Mac, so I adjusted the commands to use the version of tensorflow for M1 Mac that I've downloaded.

            I've been trying to do this install in a virtual environment using Miniforge, as it is what multiple tutorials have recommended for M1 Mac installs. From the Miniforge repo:

            This repository holds a minimal installer for Conda specific to conda-forge. It is comparable to Miniconda

            When I get to the step to install tensorboard, pip install tensorboard, the install gets as far as:

            ...

            ANSWER

            Answered 2021-Apr-29 at 10:53

            I ended up referencing a lot of different materials to try get my solution working. There are two main materials which I can credit with my success:

            grpcio-1.33.2-cp38-cp38-macosx_11_0_arm64.whl is not a supported wheel on this platform.

            For some reason the version of Python that you download from the website for MacOS doesnt seem to like these files, so uninstall your current version of Python (if you dont know how to do that click here). And then install the Python from xcode by pasting this into your terminal.

            xcode-select --install

            I had to set a few environment variables to get it to work:

            Source https://stackoverflow.com/questions/67299686

            QUESTION

            Make TensorFlow use the GPU on an ARM Mac
            Asked 2021-Apr-28 at 04:55

            I have installed TensorFlow on an M1 (ARM) Mac according to these instructions. Everything works fine.

            However, model training is happening on the CPU. How do I switch training to the GPU?

            ...

            ANSWER

            Answered 2021-Apr-22 at 13:18

            Try with turning off the eager execution... via following

            Source https://stackoverflow.com/questions/67167886

            QUESTION

            "zsh: illegal hardware instruction python" when installing Tensorflow on macbook pro M1
            Asked 2020-Dec-27 at 19:13

            I'm trying to get tensorflow working on my MacBook pro M1. However, I keep getting the following error when trying to import: zsh: illegal hardware instruction python

            I have downloaded and installed tensorflow via this link.

            These were my installation steps:

            • install a venv: python3 -m venv venv.
            • drag the install_venv.sh (which is located within the downloaded folder) file to the terminal, add -p at the end.
            • select the directory of the venv as the location where tensorflow should be installed.
            • activate the venv.
            • type "python".
            • try to import tensorflow: import tensorflow as tf.

            I'm using Python 3.8.2.

            I've seen some tutorials where this exact method does work, so I don't know what's the issue here.

            ...

            ANSWER

            Answered 2020-Dec-23 at 22:14

            I've found the answer. Seemed like my terminal app was running in Rosetta. This can be changed by right clicking on the app -> get info -> disable "open with rosetta".

            Source https://stackoverflow.com/questions/65383338

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install tensorflow_macos

            An archive containing Python packages and an installation script can be downloaded from the releases. This pre-release version supports installation and testing using the Python from Xcode Command Line Tools. See #153 for more information on installation in a Conda environment.
            To quickly try this out, copy and paste the following into Terminal: % /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/apple/tensorflow_macos/master/scripts/download_and_install.sh)" This will verify your system, ask you for confirmation, then create a virtual environment with TensorFlow for macOS installed.
            Alternatively, download the archive file from the releases. The archive contains an installation script, accelerated versions of TensorFlow, TensorFlow Addons, and needed dependencies. % curl -fLO https://github.com/apple/tensorflow_macos/releases/download/v0.1alpha2/tensorflow_macos-${VERSION}.tar.gz % tar xvzf tensorflow_macos-${VERSION}.tar % cd tensorflow_macos % ./install_venv.sh --prompt
            SciPy and dependent packages
            Server/Client TensorBoard packages

            Support

            TensorFlow r2.4rc0TensorFlow Addons 0.11.2
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries

            Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link