Click here to Skip to main content
15,946,320 members
Articles / Artificial Intelligence / Tensorflow

TensorFlow Tutorial 1: Getting Started

Rate me:
Please Sign up or sign in to vote.
5.00/5 (3 votes)
17 Oct 2018CPOL2 min read 12.3K   11   2

By Dante Sblendorio

TensorFlow is an open source machine learning library used by many companies within the industry to perform numerical computation. It was originally developed by engineers working within Google’s AI team. It has an extremely flexible architecture and can be deployed across multiple types of platforms, from mobile phones to clusters of servers. It can run on CPUs, GPUs, and even specifically designed machine learning hardware (ASICs). Both Python and C APIs are released, in addition to Java and Go. There are also third-party packages available for many other languages.

In this article, we’ll get started with TensorFlow by walking through the process for installing it. You can use different languages with TensorFlow, but we’ll be using Python, which is a good language to start with if you’re new to programming.

There are several options for installing TensorFlow. The best option depends on your operating system, hardware, and environment preferences. I would recommend installation via Anaconda, as it works across all platforms (Linux, Mac OS X, Windows), and is easy and simple to use. It  is an open source package management system and environment management system for data analysis and scientific computing. Installation instructions for Anaconda can be found here. We will be using Python, although Anaconda also supports package and environment management for R, Node.js, Java and other application stacks.  After installing Anaconda, TensorFlow can be installed by following these steps:

To create a conda environment tensorflow, open the Anaconda prompt and run:

conda create -n tensorflow pip python=3.5

Enter the environment by running:

conda activate tensorflow

Once inside your environment, call the command to install TensorFlow. Run:

pip install --ignore-installed --upgrade tensorflow

I’ll only include installation for CPU versions of TensorFlow. For those new to TensorFlow, this is more than sufficient. As you become more familiar with the package, and speed and processing power become more critical, the GPU version may be more formidable, permitting you have the supporting hardware.

The contest entry code for challenge 1 is your CodeProject member number. You can find this on your CodeProject profile page. Please click here to enter the contest entry code.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer CodeProject Solutions
Canada Canada
The CodeProject team have been writing software, building communities, and hosting CodeProject.com for over 20 years. We are passionate about helping developers share knowledge, learn new skills, and connect. We believe everyone can code, and every contribution, no matter how small, helps.

The CodeProject team is currently focussing on CodeProject.AI Server, a stand-alone, self-hosted server that provides AI inferencing services on any platform for any language. Learn AI by jumping in the deep end with us: codeproject.com/AI.
This is a Organisation

4 members

Comments and Discussions

 
Questionerror: No module named 'pandas' Pin
Member 1064194824-Oct-18 23:21
Member 1064194824-Oct-18 23:21 
QuestionFor windows users Pin
Member 1064194824-Oct-18 5:30
Member 1064194824-Oct-18 5:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.