Click here to Skip to main content
13,900,479 members
Click here to Skip to main content
Add your own
alternative version

Tagged as

Stats

5.3K views
9 bookmarked
Posted 17 Oct 2018
Licenced CPOL

TensorFlow Tutorial 1: Getting Started

, 17 Oct 2018
Rate this:
Please Sign up or sign in to vote.

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)

Share

About the Author

CodeProject
Software Developer The Code Project
United States United States
No Biography provided
Group type: Organisation

6 members


You may also be interested in...

Pro
Pro

Comments and Discussions

 
Questionerror: No module named 'pandas' Pin
Member 1064194824-Oct-18 23:21
memberMember 1064194824-Oct-18 23:21 
QuestionFor windows users Pin
Member 1064194824-Oct-18 5:30
memberMember 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.

Permalink | Advertise | Privacy | Cookies | Terms of Use | Mobile
Web03 | 2.8.190306.1 | Last Updated 17 Oct 2018
Article Copyright 2018 by CodeProject
Everything else Copyright © CodeProject, 1999-2019
Layout: fixed | fluid