TensorFlow is a free and open-source software library for Machine Learning and Deep Learning. It can be used across a range of tasks but has a particular focus on training and the interface of deep neural networks. TensorFlow is a symbolic math library based on dataflow and differentiable programming. It was developed by the Google Brain team in 2012, written in Python, Cuda, C++, and used for both research and production at Google.
In this article, we will learn how to install TensorFlow on Ubuntu. But first, we should research what a Tensor is, and the Prerequisites for Installing TensorFlow on Ubuntu.
So, what is a Tensor?
A tensor is a mathematical object represented as an array of a higher dimension. These arrays of data—with different dimensions and ranks—are fed as input to the neural network to process and build a neural network model.
To install TensorFlow on Ubuntu, you need:
- An Ubuntu Linux system (16.04 version or later)
- Python 3.5 or higher
- Pip 19.0 or newer versions
- A user account with sudo privileges
Now, let’s follow these steps to install TensorFlow on Ubuntu:
First, you need to download Python, the PIP package, and a virtual environment.
Below are some refer website links for you:
To install these packages, run the following commands in the terminal:
sudo apt update
sudo apt install python3-dev python3-pip python3-venv
Navigate to the directory where you want to store your Python 3.0 virtual environment. It can be in your home directory, or any other directory where your user can read and write permissions.
You are now inside the directory. To create a virtual environment, run the following command:
python3 -m venv virtualenv
This command will create a directory named virtualenv. It contains a copy of the Python binary, the PIP package manager, the standard Python library, and other supporting files.
Run the command:
After activating the environment, the bin directory of the virtual environment will be added to the beginning of the $PATH variable. Your shell’s prompt will change, and it will show the name of the virtual environment you are currently using, i.e. virtualenv.
Run the command below:
pip install –upgrade pip
Now, the virtual environment is activated, and it’s running. So it’s time to install the TensorFlow package by running the following command:
pip install — upgrade TensorFlow
If you want to check if TensorFlow has been installed successfully, just simply run the following lines of code on Jupyter Notebook. Print the version of TensorFlow, and make a mathematical operation.
TensorFlow helps users implement complex machine learning and deep learning models to solve business problems. In this article, we covered the TensorFlow installation on Ubuntu. And there will be more in-depth knowledge in the next article.
At iRender, we bring to Tensorflow users cloud computing service with a variety of machine configuration packages from 1 to 6 Nvidia RTX 3090 GPUs on both Windows and Ubuntu operating systems. With simple operations, a friendly interface, affordable cost, 24/7 human support service, and especially free data transmission and environmental storage service, Tensorflow users in particular as well as Users in the field of AI / Deep Learning can completely rest assured to use our service for their training.
Watch the below video to see how to training in TensorFlow with Ubuntu OS on our server 3: RTX 3090.
So, don’t waste time any more, Sign up for an account today to experience our new but extremely effective service.
Thank you & Happy Training!
Source: www.tensorflow.org; www.simplilearn.com
Read more: What is TensorFlow?