---
title: Intro to TensorFlow and Deep Learning Frameworks
description: "TensorFlow Basics Made Easy: Dive into GPU/CPU computing and scalable machine intelligence. Unleash the power of open-source ML/DL!"
image: https://www.c2cglobal.com/hubfs/Imported_Blog_Media/General%20Article%20Graphic-Mar-21-2024-09-03-58-1903-PM-Mar-26-2024-08-35-30-5070-PM.jpg
---

[![c2c logo blue](https://www.c2cglobal.com/hubfs/c2c-logo-blue.svg "c2c logo blue")](https://www.c2cglobal.com/)

[AI and Machine Learning](https://www.c2cglobal.com/articles/tag/ai-and-machine-learning), [Getting Started with Google Cloud](https://www.c2cglobal.com/articles/tag/getting-started-with-google-cloud)

# Intro to TensorFlow and Deep Learning Frameworks

By [Sabina Bhasin](https://www.c2cglobal.com/articles/author/sabina-bhasin) | March 24, 2021

***This was written by Jennifer Marsh, connect with her on the platform,   @jennifer  .***

 

Artificial intelligence (AI) continues to become a sophisticated and integral part of daily life, so talented individuals and those interested in algorithm development will turn to **deep learning frameworks** like PyTorch by Facebook, OMNex by Microsoft, and other open-source tools like Keras, Gluon, and MXNet.

All deep learning (DL) and machine learning (ML) models are built with a similar goal: to improve the way machines recognize intricate patterns and make decisions. These AI concepts and understanding the difference between DL vs. ML are imperative to choosing the right data model for your programming knowledge and needs.

Perhaps the most popular **DL framework** is TensorFlow. In ML and DL frameworks, TensorFlow is an open-source library that helps data scientists and developers create and train models. DL frameworks are the foundation for building and designing neural networks, which are components in AI study. The goal of neural networks is to simulate the way humans make decisions based on information and patterns contained within data. Like humans, the data within models "train" the neural network so that the computers that process data can make intelligent decisions.

If you're new to algorithmic programming and ML/DL tools, read our comprehensive **intro to TensorFlow** and join the greater discussion on DL.   

 

## What Is a **Deep Learning Framework**?

 

**DL frameworks** are open-source ML/DL tools used for numerical computation. Many of these digital libraries contain building block tools and resources to construct, design, and validate neural networks.

Neural networks are a subset of ML and AI. DL is the process of using several large neural networks to analyze data models and make predictions in large environments where models contain potentially terabytes of data. 

For the average data scientist, access to neural networks is limited. Unless you have access to large data sets and enormous computational power, you need help. DL frameworks give you access to extensive data models and the computational power required to make predictions. TensorFlow is one of these frameworks.

 

## What Is TensorFlow?

 

One of the most popular and widely recognized ML/DL programming tools is TensorFlow. **TensorFlow** is an open-source data library for numerical computation. It provides data scientists, researchers, and programmers arrays of data flow graphs and resources for deploying code to ML/DL models.

**TensorFlow uses** JavaScript and requires a knowledge of Python. Python and R are the two main languages in data science, but TensorFlow requires programming knowledge of Python or JavaScript. TensorFlow supports other languages such as Swift, C, Go, Java, and C#. If you want to learn more about data science, it's best to target Python as your language of choice.

You still need basic knowledge of ML to work with TensorFlow. Still, TensorFlow makes data collection much easier by providing models out of the box and providing an API to build applications and graphs. Applications can run on any device, including your local machine, in the cloud, or on a mobile Android and Apple device.

## Other **Deep Learning Frameworks**

 

Programmers and data scientists have more **DL frameworks** to choose from than just TensorFlow. For programmers working with large data sets and running multiple programs at once, Keras offers unrivaled speed in the world of numeric computation.

The TensorFlow framework is popular, but it's not the only option for building ML models. Developers generally report that TensorFlow has a significant learning curve. [MLpack](https://www.mlpack.org/) is a popular option for programmers new to ML. It provides recommendations to help programmers get started with models and training algorithms.

Training data models requires computational power, so programmers often use GPU and CPU power to process instructions. [PyTorch](https://pytorch.org/) is a tool that will leverage GPU processing power for scientific computations. It contains several DL algorithms that scientists can use for their predictions.

For programmers who prefer .NET, Microsoft introduced its application named Infer.NET. This tool works with heterogeneous data and provides scaling options for large applications. Developers who like Linux-based Apache Spark MLlib are another alternative for decision trees, regression, and clustering.

## **Intro to TensorFlow Framework**

 

Installation, Packages, and **TensorFlow Basics**

The **TensorFlow framework** uses dataflow graphs to describe computation: Nodes represent mathematical operations like multiplication, division, and so on, while the graph's edges represent data sets of the operation. This framework optimizes the calculation of mathematical expressions, allowing for ML scalability.

 

## TensorFlow Installation

 

Before installing TensorFlow features, make sure to first have Python 3.5-3.8 for TensorFlow 2.0 and 3.8 for TensorFlow 2.2. You can work with TensorFlow on Ubuntu 16.04 or later, macOS 10.12.6 (Sierra) or later, or Windows 7 or later versions.

 

## General Steps to Install TensorFlow:

 

1. Install Python.
2. Create a virtual environment in Python.
3. Install the pip3 library in Python.
4. Install TensorFlow.

 

## Mathematical Expressions in TensorFlow

 

To get started and practice TensorFlow basics, you can enter basic mathematical expressions. An easy way to do this is to use a basic math function such as:

 

y = 3\*x + 10

 

To code this in Python, use the following code:

 

| x = 2.0 y = 3\*x + 10 print y |
| --- |

 

TensorFlow uses the above code and prints the value "16" for y. Now, you can use TensorFlow to define a graph. The following Python code will graph the previous expression:

 

| import tensorflow as tf x = tf.placeholder(tf.float32, name="x") y = tf.placeholder(tf.float32, name="y") z = tf.multiply(x, y, name="z") with tf.Session() as session:     print session.run(z, feed\_dict={x: 2.0, y: 16.0}) |
| --- |

 

You can now view the graph in TensorBoard and visualize the data. Visualizing data helps identify if the output is as expected or if you need to refine your code.

 

## Other **TensorFlow Features**

 

In addition to scalability, one of the main reasons for TensorFlow's popularity is the architectural flexibility it provides. Some basic **TensorFlow features** include:

- Multi-dimensional arrays
- GPU/CPU computing
- The ability to code for mobile devices
- Scalability for production-level machine intelligence

 

---

Do you have expertise in a product or technical specialization? Would you like to also contribute to the C2C Learn Knowledge Base? Get in touch with Sabina Bhasin, Content Manager (@ContentSabina) or [sabina.bhasin@c2cglobal.com](mailto:sabina.bhasin@c2cglobal.com) 

 

---

## Recent Articles

<https://www.c2cglobal.com/articles/generative-ai-are-you-behind>

[Data Analytics](https://www.c2cglobal.com/articles/tag/data-analytics)

## [Generative AI: Are You Behind?!](https://www.c2cglobal.com/articles/generative-ai-are-you-behind)

Review the latest insights from the AI Readiness Report.

By Bruno Aziza

<https://www.c2cglobal.com/articles/make-gen-ai-work-landscape-slms-vs.-llms-cost-more>

[Industry Solutions](https://www.c2cglobal.com/articles/tag/industry-solutions)

## [Make "Gen AI Work": Landscape, SLMs vs. LLMs, Cost & More...](https://www.c2cglobal.com/articles/make-gen-ai-work-landscape-slms-vs.-llms-cost-more)

Discover the 5 metrics you need to know in order to be an exceptional CEO and Operator.

By Bruno Aziza

<https://www.c2cglobal.com/articles/ai-cheat-sheet>

[Google Cloud Strategy](https://www.c2cglobal.com/articles/tag/google-cloud-strategy)

## [AI Cheat Sheet](https://www.c2cglobal.com/articles/ai-cheat-sheet)

AI is no more and no less the drive to create robots with human minds so they can do everything we do and more. Use this cheat sheet to help decode the space.

By Leah Zitter

## Subscribe to our newsletter

Get the latest from C2C, direct to your inbox.

[Subscribe](https://share.hsforms.com/1znKGo6ySS9uaRyvLQQzxRw4qbyr)

![c2c-logo-white-tagline](https://www.c2cglobal.com/hubfs/c2c-logo-white-tagline.svg "c2c-logo-white-tagline")

C2C is the only peer-to-peer community built to support, connect, and educate Google Cloud customers across regions and industries so they can better harness the power of the cloud—and each other—to solve their biggest challenges and drive innovation.

©2024  C2C Global. All rights reserved. [Privacy Policy](https://www.c2cglobal.com/privacy)

20 N Wacker Drive • Suite 1810 • Chicago, IL • 60606

**Join over 60K members on C2C.**

Let's connect!

- [mailto:hello@c2cglobal.com](mailto:hello@c2cglobal.com)
- <https://m.youtube.com/channel/UCWOli-_qQyZziBdPQ-6p-eQ>
- <https://www.linkedin.com/company/66934702>
- [![X](https://www.c2cglobal.com/hubfs/twitter-x-icon-white.svg)](https://twitter.com/MeetC2C)

![](https://px.ads.linkedin.com/collect/?pid=2634489&fmt=gif)