Tensorflow Tutorial: Part 1 – Introduction
Everyone is talking about Tensorflow these days. In this multipart series, we explain Tensorflow in detail, including it’s architecture and industry applications.
By Vivek Kalyanarangan, United Network of Professionals.
In this multipart series, we will explore how to get started with tensorflow. This tensorflow tutorial will lay a solid foundation to this popular tool that everyone seems to be talking about. The first part will focus on introducing tensorflow, go through some applications and touch upon the architecture.
This series is excerpts from a Webinar tutorial series I have conducted as part of the United Network of Professionals. Time to time I will be referring to some of the slides that I used there as part of the talk to make it clearer.
Please don’t miss out on the live webinars where I talk about everything I write. Register yourself with our upcoming webinars to know about the topics we will be discussing.
This post is the first part of the multipart series on a complete tensorflow tutorial –
 Tensorflow Tutorial – Part 1: Introduction
 Tensorflow Tutorial – Part 2: Getting Started
 Tensorflow Tutorial – Part 3: Building the first model
Tensorflow Tutorial : Goals
 Why Tensorflow?
 What is Tensorflow?
 Tensorflow Environment
 Computation Graph
 PreRequisites
 Conclusion
Why Tensorflow?
Well, for starters, it is an open source library from Google. Tensorflow has been gaining a lot of traction in the market given the rising popularity of neural networks and deep learning.
Many applications as of today have tensorflow embedded as part of their machine learning applications. Some broad applications have been listed below –
Applications
Some of the most popular cutting edge real world applications are using tensorflow.
They have reported great accuracy scores which keeps on increasing over time.
 Image Recognition – Ever since Alex Krizhevsky winning the ImageNet challenge in 2012, convolutional neural networks have burst out in popularity and almost every month new architectures are surfacing with increased accuracy scores. Tensorflow is one of the foremost implementation choices for these applications
 Virtual Assistant – Chatbots have seen a significant rise in popularity in the year 2017. It is expected to maintain this trend. Understanding computational linguistics and deliver a highend deep learning algorithm that can process text is one of the most sought after skills as of today.
 Selfdriving cars – They use a variety of sensory inputs to determine every move, be it changing lanes to detecting traffic signals and stopping, detecting humans, other cars etc. Tensorflow is used in almost all the current selfdriving cars that we see.
What is TensorFlow?
An interface for expressing machine learning algorithms and an implementation for executing such algorithms; A framework for creating ensemble algorithms for today’s most challenging problems. – Google Brain Team
Tensorflow is not just a predefined library of algorithms that you can use out of the box. It is a lowlevel library where you can orchestrate and design complex algorithms. It is very flexible in the way it lets you define your own computation graph.
For people not wanting to leverage such lowlevel flexibilities, there is a rich set of predefined algorithms that you can use off the shelf. These algorithms have been the architectures used in latest research papers known to push accuracies to new levels.
So, in a way Transfer Learning (a feature of TensorFlow to be discussed later in the series) brings the Industry and Academia together.
TensorFlow Environment
Let’s explore the tensorflow environment and how the flexible architecture makes implementation so easy.
Language Interface
All technology components need an underlying programming language so that a programmer can talk to the technology. Tensorflow is one such technologies that requires SDKs in other programming languages to implement.
Right now, tensorflow supports the following only –
 Python : TensorFlow is available as a python library. Most of the operating system dependencies have been resolved, so apart from Windows (which required Python 3.5), TensorFlow supports all combinations of operating systems/python versions.
 C++ : TensforFlow is available in C++ in the form of an API.
For all of this series, we will only be using the Python implementations to build our solutions. I will happily willing to make C++ additions in case someone is willing to contribute.
Execution Environment
Once the computation graph has been specified, it is sent to the execution environment to be executed. The execution master uses process execution device commands, to determine where to execute code.
This means you can execute code locally in your laptop with a CPU of a GPU if you have one. It also means you can trigger remote execution to a distributed system with multiple nodes, CPUs and GPUs.
This means you can build code and try it out with small data in your local machine. If it works out, you can easily scale it across large clusters with very little effort on your part.
Computation Graph
A tensor is an ndimensional structure –
 n=0 : Single Value
 n=1: List of Values
 n=2 : Matrix of values
Example: (a+b) * c
As in the above diagram, we start with two tensors a and b. Since these can be multidimensional arrays of data, they can be taken to be complex data objects – such as images. Therefore, it might produce an ndimensional array – which might be the result of multiplying the pixels of the two images, although I am not sure what the output image might look like.
The result is then added with another multidimensional array c, which might result in varying brightness of the images perhaps (depends on whether c is positive or negative).
I will be referring to these computation graphs as simply graphs.
These tensors flow through and are altered by operations (multiply and add for example). The flow of these tensors through these operations is what renders the name tensorflow.
Prerequisites
Skills Required  Skills Not Required 
Knowledge of at least 1 programming language  Expertise in TensorFlow 
Basic Math and Statistics  Expertise in Python 
Passion to Understand  Advanced Math and Statistics 
Conclusion
I hope this sets the expectations for what is about to come. In the next post we will talk about installing and a simple TensorFlow implementation.
Please don’t miss out on the live webinars where I talk about everything I write. Register yourself with our upcoming webinars to know about the topics we will be discussing. Happy Coding!
I am embedding the original presentation below –
Let me know your opinions in the comments section below.
Original. Reposted with permission.
Bio: Vivek Kalyanarangan is a Data Scientist, Blogger, Guitar Player and geeks out on new technology through and through.
Related:
Top Stories Past 30 Days  


