Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tensorflow installation using SSE instructions with pip

I successfully installed cpu only tensorflow on ubuntu 16.04 using the default instructions provided here. The instructions recommended using virtualenv and pip so I did not build from source. I had no problems installing with these instructions.

I validated my installation using the instructions provided further down on the same page, and while the program ran successfully, it output the following warnings.

W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE3 instructions, but these are available on your machine and could speed up CPU computations.
W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.1 instructions, but these are available on your machine and could speed up CPU computations.
W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.2 instructions, but these are available on your machine and could speed up CPU computations.
Hello, TensorFlow!

all the stackoverflow pages i've looked at only address people who have built from source using bazel, but don't seem to apply to people who used pip.

How do I recompile or update my installation so as to the SSE instructions?

like image 923
CuriousDan Avatar asked Feb 20 '17 00:02

CuriousDan


People also ask

How do I install the TensorFlow pip package?

Install the TensorFlow pip package Missed ML Community Day? Watch all the sessions on demand View sessions Was this helpful? 1. Install the Python development environment on your system 2. Create a virtual environment (recommended) 3. Install the TensorFlow pip package tf-nightly —Preview build (unstable). Ubuntu and Windows include GPU support.

How do I install TensorFlow on my System?

Hardware requirements 1 Install the Python development environment on your system#N#Check if your Python environment is already... 2 Create a virtual environment (recommended)#N#Python virtual environments are used to isolate package installation from... 3 Install the TensorFlow pip package More ...

Is TensorFlow supported on 64-bit systems?

TensorFlow is tested and supported on the following 64-bit systems: Install TensorFlow with Python's pip package manager. TensorFlow 2 packages require a pip version >19.0 (or >20.3 for macOS). Official packages available for Ubuntu, Windows, and macOS. See the GPU guide for CUDA®-enabled cards.

How to install Pip in Visual Studio 2019?

PIP 19.0 or above version installation. Microsoft Visual C++ Redistributable for Visual Studio 2015, 2017 and 2019. Once Python, PIP installation is completed then verify versions using below commands: Step 1: Install the Pip virtual environment in the Command prompt. Step 2: Here we are creating the directory for Python virtual environment.


1 Answers

bazel build --linkopt='-lrt' -c opt --copt=-mavx --copt=-msse4.2 --copt=-msse4.1 --copt=-msse3-k //tensorflow/tools/pip_package:build_pip_package

If above solved your problem ,vote up Christian Frei's answer on How do I resolve these tensorflow warnings?

like image 88
Ajay Singh Avatar answered Sep 29 '22 03:09

Ajay Singh