{"id":22978351,"url":"https://github.com/thunderbottom/tensorflow-binaries","last_synced_at":"2025-08-13T16:32:37.079Z","repository":{"id":91676007,"uuid":"92378670","full_name":"Thunderbottom/Tensorflow-binaries","owner":"Thunderbottom","description":"Tensorflow GNU/Linux, MacOS binaries compiled with SSE4.1, SSE4.2 and AVX","archived":false,"fork":false,"pushed_at":"2017-08-22T11:06:26.000Z","size":66024,"stargazers_count":14,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-02T02:21:35.987Z","etag":null,"topics":["bazel","build","macos","package","python","tensorflow","wheel"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Thunderbottom.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-05-25T07:45:46.000Z","updated_at":"2022-02-24T08:01:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"918b5211-4f82-490f-93d0-dc7ca89cd852","html_url":"https://github.com/Thunderbottom/Tensorflow-binaries","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Thunderbottom/Tensorflow-binaries","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thunderbottom%2FTensorflow-binaries","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thunderbottom%2FTensorflow-binaries/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thunderbottom%2FTensorflow-binaries/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thunderbottom%2FTensorflow-binaries/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Thunderbottom","download_url":"https://codeload.github.com/Thunderbottom/Tensorflow-binaries/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thunderbottom%2FTensorflow-binaries/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270274671,"owners_count":24556700,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-13T02:00:09.904Z","response_time":66,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bazel","build","macos","package","python","tensorflow","wheel"],"created_at":"2024-12-15T01:18:35.242Z","updated_at":"2025-08-13T16:32:37.064Z","avatar_url":"https://github.com/Thunderbottom.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tensorflow macOS binary\n\n  Tensorflow macOS binary, compiled with SSE4.1, SSE4.2 and AVX optimizations. \n\n  If you want to compile your own binary for macOS, check out [compiling your own binary](#compiling-your-own-binary)\n\n## Versioning\n\n  Latest available tensorflow version: [![tensorflow version](https://badge.fury.io/gh/tensorflow%2Ftensorflow.svg)](https://github.com/tensorflow/tensorflow)\n\n\n## Getting Started\n\n  These instructions will get you a copy of the tensorflow running with SSE4.1, SSE4.2 and AVX enabled for optimizations.\n  \n  Please **DO NOT** install the following binary if your CPU does not support the above optimizations.\n\n### How do I check for compatibility?\n\n  You should get the following warnings while running tensorflow which was downloaded through pip:\n\n  ```\n  The TensorFlow library wasn't compiled to use SSE4.1/SSE4.2/AVX instructions, \n  but these are available on your machine and could speed up CPU computations.\n  ```\n\n  If this is not something that you see while executing tensorflow programs, please do not install this binary.\n\n### Installing\n\n  Download the binary from the git repository\n\n  ```\n  git clone https://github.com/Thunderbottom/Tensorflow-macOS-binary.git\n  ```\n\n  Open up your existing virtualenv:\n\n  ```shell\n  source /path/to/virtualenv/bin/activate\n  ```\n\n  Or create a new one:\n\n  ```shell\n  # Make sure you have virtualenv installed\n  # or install it: pip install virtualenv (Use pip3 if pip is python2)\n  cd /path/to/whatever \u0026\u0026 virtualenv whatever\n  ```\n\n  Install the downloaded wheel file with pip\n\n  ```shell\n  # Use pip3 for python3\n  pip install filename.whl\n  # If you have an existing tensorflow installation, it'll be automatically removed and replaced.\n  ```\n\n## Post installation\n\n  We need to check if tensorflow was properly installed. To check that, run the following command:\n\n  ```shell\n  python3 -c 'import tensorflow as tf; print(tf.__version__)'\n  ```\n\n  The output should look somewhat like this:\n\n  ```\n  1.3.0\n  ```\n\n## Built With\n\n  * [Bazel](https://bazel.build/versions/master/docs/install.html)\n  * [Xcode CommandLineTools](https://developer.apple.com/xcode/)\n\n\n## Compiling your own binary\n\n  To compile your own version of tensorflow binary, you'll need the following:\n\n  python\n  ```shell\n  brew install python python3\n  ```\n  pip\n  ```shell\n  # pip will probably be installed along with python\n  # if pip is not installed, you may go to\n  https://pip.pypa.io/en/stable/installing/\n  ```\n  numpy1.12.1\n  ```shell\n  pip install numpy\n  ```\n  wheel\n  ```shell\n  pip install wheel\n  ```\n  bazel - \n  ```\n  https://bazel.build/versions/master/docs/install-os-x.html\n  ```\n  xcode commandlinetools - \n  ```shell\n  # Run the following command in terminal\n  xcode-select install\n  ```\n\n  Create a virtualenv - \n  ```shell\n  # Make sure you have virtualenv installed\n  # or install it: pip install virtualenv (Use pip3 if pip is python2)\n  cd /path/to/whatever \u0026\u0026 virtualenv whatever\n  ```\n  \n  Open the virtualenv -\n  ```shell\n  source /path/to/whatever/bin/activate\n  ```\n  \n  Clone the tensorflow repository - \n  ```shell\n  # Replace \u003clatest-version\u003e with latest revision branch from repo\n  git clone https://github.com/tensorflow/tensorflow \u0026\u0026 cd tensorflow \u0026\u0026 git checkout \u003clatest-version\u003e\n  ```\n  \n  Run the configuration file and configure according to your needs -\n  ```shell\n  ./configure\n  ```\n  \n  After the configuration is complete, we will compile the binary -\n  ```shell\n  # the following command will enable SSE4.1, SSE4.2 and AVX\n  bazel build -c opt --copt=-mavx --copt=-msse4.1 --copt=-msse4.2  -k //tensorflow/tools/pip_package:build_pip_package\n  ```\n  \n  If you wish to tune the flags, or add more compilation flags,\n  you may do so by adding the following flags before the `-k` flag :\n  \n  **CUDA** -  `--config=cuda`\n  \n  **AVX2** -  `--copt=-mavx2`\n  \n  **FMA**  - `--copt=-mfma --copt=-mfpmath=both`\n  \n  After the compilation is complete, we will generate the wheel file - \n  ```shell\n  bazel-bin/tensorflow/tools/pip_package/build_pip_package /tmp/tensorflow_pkg\n  ```\n  \n  Now, the wheel file will be generated and stored at /tmp/tensorflow_pkg\n  \n  To install :\n  ```shell\n  # Use pip3 for python3\n  pip install /tmp/tensorflow_pkg/filename.whl\n  ```\n  \n  Check out [post-installation](#post-installation) instructions to check the installed binary\n  \n  \n  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthunderbottom%2Ftensorflow-binaries","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthunderbottom%2Ftensorflow-binaries","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthunderbottom%2Ftensorflow-binaries/lists"}