SlideShare a Scribd company logo
11
11
Tensor
• Tensor: A tensor is a mathematical object which is a standard way of
representing data in deep learning. Tensors are defined as a
multidimensional array or as a list. Tensors are identified by the following
parameters.
• Rank: The rank of a tensor is defined by the number of directions required
to describe a tensor. Example: A zero rank tensor is a scalar, a first rank
tensor is a vector, a second rank tensor is typically a square matrix, etc.
• Shape: Number of rows and columns of a tensor.
• Type: Data type assigned to the tensor’s elements. Example: integer, float,
string, or Boolean.
• Flow(Graph): Flow is the graphical representation of mathematical
operations. TensorFlow performs computations with the help of dataflow
graphs. It has nodes that represent the operations in your model. We then
write code to build the graph, create a session, and execute that graph.
Most read
13
13
Neural Network
Most read
16
16
Tensorflow Example
Construction
Phase
Execution
Phase
Most read
Deep Learning & Neural Network
Tensorflow
1
2
What is Tensorflow
• TensorFlow is an open-source end-to-end platform for creating
Machine Learning applications.
• It is a symbolic math library that uses dataflow and differentiable
programming to perform various tasks focused on training and
inference of deep neural networks.
• It allows developers to create machine learning applications using
various tools, libraries, and community resources.
• TensorFlow is a library developed by the Google Brain Team to
accelerate machine learning and deep neural network research.
• It was built to run on multiple CPUs or GPUs and even mobile
operating systems, and it has several wrappers in several languages
like Python, C++ or Java
3
Tensorflow Example
• Currently, the most famous deep learning library in the
world is Google’s TensorFlow.
• Google product uses machine learning in all of its products
to improve the search engine, translation, image captioning
or recommendations.
4
How Tensorflow works
• TensorFlow enables you to build dataflow graphs and
structures to define how data moves through a graph by
taking inputs as a multi-dimensional array called Tensor.
• It allows you to construct a flowchart of operations that
can be performed on these inputs, which goes at one end
and comes at the other end as output.
5
Companies using Tensorflow
6
Tensorflow Architecture
• Tensorflow architecture works in three parts:
1. Preprocessing the data
2. Build the model
3. Train and estimate the model
• It is called Tensorflow because it takes input as a multi-
dimensional array, also known as tensors.
• You can construct a sort of flowchart of operations (called a
Graph) that you want to perform on that input.
• The input goes in at one end, and then it flows through this system
of multiple operations and comes out the other end as output.
• This is why it is called TensorFlow because the tensor goes in it
flows through a list of operations, and then it comes out the other
side.
7
Tensorflow Components
• Tensors.
• Graph
8
Tensorflow Components
Tensors.
• In Tensorflow, all the computations involve tensors.
• A tensor is a vector or matrix of n-dimensions that represents all types
of data.
• All values in a tensor hold identical data type with a known (or partially
known) shape.
The shape of the data is the dimensionality of the matrix or array.
• A tensor can be originated from the input data or the result of a
computation.
• In TensorFlow, all the operations are conducted inside a graph.
• The graph is a set of computation that takes place successively. Each
operation is called an op node and are connected to each other.
• The graph outlines the ops and connections between the nodes. However,
it does not display the values. The edge of the nodes is the tensor, i.e., a
way to populate the operation with data.
9
Tensorflow Components
Graphs.
• TensorFlow makes use of a graph framework.
• The graph gathers and describes all the series computations done during
the training.
• The graph has lots of advantages:
1. It was done to run on multiple CPUs or GPUs and even mobile
operating system
2. The portability of the graph allows to preserve the computations for
immediate or later use. The graph can be saved to be executed in the
future.
3. All the computations in the graph are done by connecting tensors
together.
A tensor has a node and an edge. The node carries the mathematical
operation and produces an endpoints outputs. The edges the edges explain
the input/output relationships between nodes.
10
Tensor
11
Tensor
• Tensor: A tensor is a mathematical object which is a standard way of
representing data in deep learning. Tensors are defined as a
multidimensional array or as a list. Tensors are identified by the following
parameters.
• Rank: The rank of a tensor is defined by the number of directions required
to describe a tensor. Example: A zero rank tensor is a scalar, a first rank
tensor is a vector, a second rank tensor is typically a square matrix, etc.
• Shape: Number of rows and columns of a tensor.
• Type: Data type assigned to the tensor’s elements. Example: integer, float,
string, or Boolean.
• Flow(Graph): Flow is the graphical representation of mathematical
operations. TensorFlow performs computations with the help of dataflow
graphs. It has nodes that represent the operations in your model. We then
write code to build the graph, create a session, and execute that graph.
12
Neural Network
13
Neural Network
14
Competition
15
Feature of Tensorflow 2.0
16
Tensorflow Example
Construction
Phase
Execution
Phase
17
Tensorflow Example
18
Eager Execution
19
Eager Execution - setup
20
TF2 is imperative by default
21
TF1 : Build a graph then run it
• Build a graph (Construction Phase)
• Run it (Execution Phase)
22
Why is Tensorflow Popular?
• TensorFlow is the best library of all because it is built to be
accessible for everyone.
• Tensorflow library incorporates different API to built at scale deep
learning architecture like CNN or RNN.
• TensorFlow is based on graph computation; it allows the developer
to visualize the construction of the neural network with
Tensorboad. This tool is helpful to debug the program.
•
• Finally, Tensorflow is built to be deployed at scale. It runs on CPU
and GPU.
23

More Related Content

Similar to Lecture Note DL&NN Tensorflow.pptx (20)

Tensorflow - Overview, Features And Advantages.pdf
Tensorflow - Overview, Features And Advantages.pdfTensorflow - Overview, Features And Advantages.pdf
Tensorflow - Overview, Features And Advantages.pdf
DataSpace Academy
 
hpcpp.pptx
hpcpp.pptxhpcpp.pptx
hpcpp.pptx
pradhyumnpurohit1
 
Hadoop training in mumbai
Hadoop training in mumbaiHadoop training in mumbai
Hadoop training in mumbai
faizrashid1995
 
TensorFlow.pptx
TensorFlow.pptxTensorFlow.pptx
TensorFlow.pptx
Jayesh Patil
 
Neural Networks with Google TensorFlow
Neural Networks with Google TensorFlowNeural Networks with Google TensorFlow
Neural Networks with Google TensorFlow
Darshan Patel
 
Introducing TensorFlow: The game changer in building "intelligent" applications
Introducing TensorFlow: The game changer in building "intelligent" applicationsIntroducing TensorFlow: The game changer in building "intelligent" applications
Introducing TensorFlow: The game changer in building "intelligent" applications
Rokesh Jankie
 
TensorFlow 2.0 Autographs - For TFUG - Vik Pant
TensorFlow 2.0 Autographs - For TFUG - Vik PantTensorFlow 2.0 Autographs - For TFUG - Vik Pant
TensorFlow 2.0 Autographs - For TFUG - Vik Pant
Devatanu Banerjee
 
The Flow of TensorFlow
The Flow of TensorFlowThe Flow of TensorFlow
The Flow of TensorFlow
Jeongkyu Shin
 
Machine Learning with TensorFlow 2
Machine Learning with TensorFlow 2Machine Learning with TensorFlow 2
Machine Learning with TensorFlow 2
Sarah Stemmler
 
PPT TENSORFLOW about and introduction and its working
PPT TENSORFLOW about and introduction and its workingPPT TENSORFLOW about and introduction and its working
PPT TENSORFLOW about and introduction and its working
mohinicbmohinicb
 
Computation graphs - Tensorflow & CNTK
Computation graphs - Tensorflow & CNTKComputation graphs - Tensorflow & CNTK
Computation graphs - Tensorflow & CNTK
A H M Forhadul Islam
 
Machine Intelligence at Google Scale: TensorFlow
Machine Intelligence at Google Scale: TensorFlowMachine Intelligence at Google Scale: TensorFlow
Machine Intelligence at Google Scale: TensorFlow
DataWorks Summit/Hadoop Summit
 
Introduction to TensorFlow
Introduction to TensorFlowIntroduction to TensorFlow
Introduction to TensorFlow
Matthias Feys
 
Austin,TX Meetup presentation tensorflow final oct 26 2017
Austin,TX Meetup presentation tensorflow final oct 26 2017Austin,TX Meetup presentation tensorflow final oct 26 2017
Austin,TX Meetup presentation tensorflow final oct 26 2017
Clarisse Hedglin
 
Neural networks and google tensor flow
Neural networks and google tensor flowNeural networks and google tensor flow
Neural networks and google tensor flow
Shannon McCormick
 
Tensorflow presentation
Tensorflow presentationTensorflow presentation
Tensorflow presentation
Ahmed rebai
 
Tensor flow
Tensor flowTensor flow
Tensor flow
sahilnarvekar
 
Tensor flow
Tensor flowTensor flow
Tensor flow
Nikhil Krishna Nair
 
Tensorflow Tutorial for Beginners.pdf
Tensorflow Tutorial for Beginners.pdfTensorflow Tutorial for Beginners.pdf
Tensorflow Tutorial for Beginners.pdf
SudhanshiBakre1
 
An Introduction to TensorFlow architecture
An Introduction to TensorFlow architectureAn Introduction to TensorFlow architecture
An Introduction to TensorFlow architecture
Mani Goswami
 
Tensorflow - Overview, Features And Advantages.pdf
Tensorflow - Overview, Features And Advantages.pdfTensorflow - Overview, Features And Advantages.pdf
Tensorflow - Overview, Features And Advantages.pdf
DataSpace Academy
 
Hadoop training in mumbai
Hadoop training in mumbaiHadoop training in mumbai
Hadoop training in mumbai
faizrashid1995
 
Neural Networks with Google TensorFlow
Neural Networks with Google TensorFlowNeural Networks with Google TensorFlow
Neural Networks with Google TensorFlow
Darshan Patel
 
Introducing TensorFlow: The game changer in building "intelligent" applications
Introducing TensorFlow: The game changer in building "intelligent" applicationsIntroducing TensorFlow: The game changer in building "intelligent" applications
Introducing TensorFlow: The game changer in building "intelligent" applications
Rokesh Jankie
 
TensorFlow 2.0 Autographs - For TFUG - Vik Pant
TensorFlow 2.0 Autographs - For TFUG - Vik PantTensorFlow 2.0 Autographs - For TFUG - Vik Pant
TensorFlow 2.0 Autographs - For TFUG - Vik Pant
Devatanu Banerjee
 
The Flow of TensorFlow
The Flow of TensorFlowThe Flow of TensorFlow
The Flow of TensorFlow
Jeongkyu Shin
 
Machine Learning with TensorFlow 2
Machine Learning with TensorFlow 2Machine Learning with TensorFlow 2
Machine Learning with TensorFlow 2
Sarah Stemmler
 
PPT TENSORFLOW about and introduction and its working
PPT TENSORFLOW about and introduction and its workingPPT TENSORFLOW about and introduction and its working
PPT TENSORFLOW about and introduction and its working
mohinicbmohinicb
 
Computation graphs - Tensorflow & CNTK
Computation graphs - Tensorflow & CNTKComputation graphs - Tensorflow & CNTK
Computation graphs - Tensorflow & CNTK
A H M Forhadul Islam
 
Introduction to TensorFlow
Introduction to TensorFlowIntroduction to TensorFlow
Introduction to TensorFlow
Matthias Feys
 
Austin,TX Meetup presentation tensorflow final oct 26 2017
Austin,TX Meetup presentation tensorflow final oct 26 2017Austin,TX Meetup presentation tensorflow final oct 26 2017
Austin,TX Meetup presentation tensorflow final oct 26 2017
Clarisse Hedglin
 
Neural networks and google tensor flow
Neural networks and google tensor flowNeural networks and google tensor flow
Neural networks and google tensor flow
Shannon McCormick
 
Tensorflow presentation
Tensorflow presentationTensorflow presentation
Tensorflow presentation
Ahmed rebai
 
Tensorflow Tutorial for Beginners.pdf
Tensorflow Tutorial for Beginners.pdfTensorflow Tutorial for Beginners.pdf
Tensorflow Tutorial for Beginners.pdf
SudhanshiBakre1
 
An Introduction to TensorFlow architecture
An Introduction to TensorFlow architectureAn Introduction to TensorFlow architecture
An Introduction to TensorFlow architecture
Mani Goswami
 

Recently uploaded (20)

Kevin Corke Spouse Revealed A Deep Dive Into His Private Life.pdf
Kevin Corke Spouse Revealed A Deep Dive Into His Private Life.pdfKevin Corke Spouse Revealed A Deep Dive Into His Private Life.pdf
Kevin Corke Spouse Revealed A Deep Dive Into His Private Life.pdf
Medicoz Clinic
 
Air Filter Flat Sheet Media-Catalouge-Final.pdf
Air Filter Flat Sheet Media-Catalouge-Final.pdfAir Filter Flat Sheet Media-Catalouge-Final.pdf
Air Filter Flat Sheet Media-Catalouge-Final.pdf
FILTRATION ENGINEERING & CUNSULTANT
 
2. CT M35 Grade Concrete Mix design ppt.pdf
2. CT M35 Grade Concrete Mix design  ppt.pdf2. CT M35 Grade Concrete Mix design  ppt.pdf
2. CT M35 Grade Concrete Mix design ppt.pdf
smghumare
 
9aeb2aae-3b85-47a5-9776-154883bbae57.pdf
9aeb2aae-3b85-47a5-9776-154883bbae57.pdf9aeb2aae-3b85-47a5-9776-154883bbae57.pdf
9aeb2aae-3b85-47a5-9776-154883bbae57.pdf
RishabhGupta578788
 
BEC602-Module-3-1_Notes.pdf. Vlsi design and testing notes
BEC602-Module-3-1_Notes.pdf. Vlsi design and testing notesBEC602-Module-3-1_Notes.pdf. Vlsi design and testing notes
BEC602-Module-3-1_Notes.pdf. Vlsi design and testing notes
VarshithaP6
 
Software_Engineering_in_6_Hours_lyst1728638742594.pdf
Software_Engineering_in_6_Hours_lyst1728638742594.pdfSoftware_Engineering_in_6_Hours_lyst1728638742594.pdf
Software_Engineering_in_6_Hours_lyst1728638742594.pdf
VanshMunjal7
 
[HIFLUX] Lok Fitting&Valve Catalog 2025 (Eng)
[HIFLUX] Lok Fitting&Valve Catalog 2025 (Eng)[HIFLUX] Lok Fitting&Valve Catalog 2025 (Eng)
[HIFLUX] Lok Fitting&Valve Catalog 2025 (Eng)
하이플럭스 / HIFLUX Co., Ltd.
 
Department of Environment (DOE) Mix Design with Fly Ash.
Department of Environment (DOE) Mix Design with Fly Ash.Department of Environment (DOE) Mix Design with Fly Ash.
Department of Environment (DOE) Mix Design with Fly Ash.
MdManikurRahman
 
하이플럭스 락피팅 카달로그 2025 (Lok Fitting Catalog 2025)
하이플럭스 락피팅 카달로그 2025 (Lok Fitting Catalog 2025)하이플럭스 락피팅 카달로그 2025 (Lok Fitting Catalog 2025)
하이플럭스 락피팅 카달로그 2025 (Lok Fitting Catalog 2025)
하이플럭스 / HIFLUX Co., Ltd.
 
MODULE 4 BUILDING PLANNING AND DESIGN SY BTECH HVAC SYSTEM IN BUILDING
MODULE 4 BUILDING PLANNING AND DESIGN SY BTECH HVAC SYSTEM IN BUILDINGMODULE 4 BUILDING PLANNING AND DESIGN SY BTECH HVAC SYSTEM IN BUILDING
MODULE 4 BUILDING PLANNING AND DESIGN SY BTECH HVAC SYSTEM IN BUILDING
Dr. BASWESHWAR JIRWANKAR
 
"The Enigmas of the Riemann Hypothesis" by Julio Chai
"The Enigmas of the Riemann Hypothesis" by Julio Chai"The Enigmas of the Riemann Hypothesis" by Julio Chai
"The Enigmas of the Riemann Hypothesis" by Julio Chai
Julio Chai
 
world subdivision.pdf...................
world subdivision.pdf...................world subdivision.pdf...................
world subdivision.pdf...................
bmmederos10
 
Tesia Dobrydnia - A Leader In Her Industry
Tesia Dobrydnia - A Leader In Her IndustryTesia Dobrydnia - A Leader In Her Industry
Tesia Dobrydnia - A Leader In Her Industry
Tesia Dobrydnia
 
Video Games and Artificial-Realities.pptx
Video Games and Artificial-Realities.pptxVideo Games and Artificial-Realities.pptx
Video Games and Artificial-Realities.pptx
HadiBadri1
 
Better Builder Magazine, Issue 53 / Spring 2025
Better Builder Magazine, Issue 53 / Spring 2025Better Builder Magazine, Issue 53 / Spring 2025
Better Builder Magazine, Issue 53 / Spring 2025
Better Builder Magazine
 
ISO 5011 Air Filter Catalogues .pdf
ISO 5011 Air Filter Catalogues      .pdfISO 5011 Air Filter Catalogues      .pdf
ISO 5011 Air Filter Catalogues .pdf
FILTRATION ENGINEERING & CUNSULTANT
 
Structural Health and Factors affecting.pptx
Structural Health and Factors affecting.pptxStructural Health and Factors affecting.pptx
Structural Health and Factors affecting.pptx
gunjalsachin
 
All about the Snail Power Catalog Product 2025
All about the Snail Power Catalog  Product 2025All about the Snail Power Catalog  Product 2025
All about the Snail Power Catalog Product 2025
kstgroupvn
 
Unit 6 Message Digest Message Digest Message Digest
Unit 6  Message Digest  Message Digest  Message DigestUnit 6  Message Digest  Message Digest  Message Digest
Unit 6 Message Digest Message Digest Message Digest
ChatanBawankar
 
Kevin Corke Spouse Revealed A Deep Dive Into His Private Life.pdf
Kevin Corke Spouse Revealed A Deep Dive Into His Private Life.pdfKevin Corke Spouse Revealed A Deep Dive Into His Private Life.pdf
Kevin Corke Spouse Revealed A Deep Dive Into His Private Life.pdf
Medicoz Clinic
 
2. CT M35 Grade Concrete Mix design ppt.pdf
2. CT M35 Grade Concrete Mix design  ppt.pdf2. CT M35 Grade Concrete Mix design  ppt.pdf
2. CT M35 Grade Concrete Mix design ppt.pdf
smghumare
 
9aeb2aae-3b85-47a5-9776-154883bbae57.pdf
9aeb2aae-3b85-47a5-9776-154883bbae57.pdf9aeb2aae-3b85-47a5-9776-154883bbae57.pdf
9aeb2aae-3b85-47a5-9776-154883bbae57.pdf
RishabhGupta578788
 
BEC602-Module-3-1_Notes.pdf. Vlsi design and testing notes
BEC602-Module-3-1_Notes.pdf. Vlsi design and testing notesBEC602-Module-3-1_Notes.pdf. Vlsi design and testing notes
BEC602-Module-3-1_Notes.pdf. Vlsi design and testing notes
VarshithaP6
 
Software_Engineering_in_6_Hours_lyst1728638742594.pdf
Software_Engineering_in_6_Hours_lyst1728638742594.pdfSoftware_Engineering_in_6_Hours_lyst1728638742594.pdf
Software_Engineering_in_6_Hours_lyst1728638742594.pdf
VanshMunjal7
 
Department of Environment (DOE) Mix Design with Fly Ash.
Department of Environment (DOE) Mix Design with Fly Ash.Department of Environment (DOE) Mix Design with Fly Ash.
Department of Environment (DOE) Mix Design with Fly Ash.
MdManikurRahman
 
하이플럭스 락피팅 카달로그 2025 (Lok Fitting Catalog 2025)
하이플럭스 락피팅 카달로그 2025 (Lok Fitting Catalog 2025)하이플럭스 락피팅 카달로그 2025 (Lok Fitting Catalog 2025)
하이플럭스 락피팅 카달로그 2025 (Lok Fitting Catalog 2025)
하이플럭스 / HIFLUX Co., Ltd.
 
MODULE 4 BUILDING PLANNING AND DESIGN SY BTECH HVAC SYSTEM IN BUILDING
MODULE 4 BUILDING PLANNING AND DESIGN SY BTECH HVAC SYSTEM IN BUILDINGMODULE 4 BUILDING PLANNING AND DESIGN SY BTECH HVAC SYSTEM IN BUILDING
MODULE 4 BUILDING PLANNING AND DESIGN SY BTECH HVAC SYSTEM IN BUILDING
Dr. BASWESHWAR JIRWANKAR
 
"The Enigmas of the Riemann Hypothesis" by Julio Chai
"The Enigmas of the Riemann Hypothesis" by Julio Chai"The Enigmas of the Riemann Hypothesis" by Julio Chai
"The Enigmas of the Riemann Hypothesis" by Julio Chai
Julio Chai
 
world subdivision.pdf...................
world subdivision.pdf...................world subdivision.pdf...................
world subdivision.pdf...................
bmmederos10
 
Tesia Dobrydnia - A Leader In Her Industry
Tesia Dobrydnia - A Leader In Her IndustryTesia Dobrydnia - A Leader In Her Industry
Tesia Dobrydnia - A Leader In Her Industry
Tesia Dobrydnia
 
Video Games and Artificial-Realities.pptx
Video Games and Artificial-Realities.pptxVideo Games and Artificial-Realities.pptx
Video Games and Artificial-Realities.pptx
HadiBadri1
 
Better Builder Magazine, Issue 53 / Spring 2025
Better Builder Magazine, Issue 53 / Spring 2025Better Builder Magazine, Issue 53 / Spring 2025
Better Builder Magazine, Issue 53 / Spring 2025
Better Builder Magazine
 
Structural Health and Factors affecting.pptx
Structural Health and Factors affecting.pptxStructural Health and Factors affecting.pptx
Structural Health and Factors affecting.pptx
gunjalsachin
 
All about the Snail Power Catalog Product 2025
All about the Snail Power Catalog  Product 2025All about the Snail Power Catalog  Product 2025
All about the Snail Power Catalog Product 2025
kstgroupvn
 
Unit 6 Message Digest Message Digest Message Digest
Unit 6  Message Digest  Message Digest  Message DigestUnit 6  Message Digest  Message Digest  Message Digest
Unit 6 Message Digest Message Digest Message Digest
ChatanBawankar
 

Lecture Note DL&NN Tensorflow.pptx

  • 1. Deep Learning & Neural Network Tensorflow 1
  • 2. 2 What is Tensorflow • TensorFlow is an open-source end-to-end platform for creating Machine Learning applications. • It is a symbolic math library that uses dataflow and differentiable programming to perform various tasks focused on training and inference of deep neural networks. • It allows developers to create machine learning applications using various tools, libraries, and community resources. • TensorFlow is a library developed by the Google Brain Team to accelerate machine learning and deep neural network research. • It was built to run on multiple CPUs or GPUs and even mobile operating systems, and it has several wrappers in several languages like Python, C++ or Java
  • 3. 3 Tensorflow Example • Currently, the most famous deep learning library in the world is Google’s TensorFlow. • Google product uses machine learning in all of its products to improve the search engine, translation, image captioning or recommendations.
  • 4. 4 How Tensorflow works • TensorFlow enables you to build dataflow graphs and structures to define how data moves through a graph by taking inputs as a multi-dimensional array called Tensor. • It allows you to construct a flowchart of operations that can be performed on these inputs, which goes at one end and comes at the other end as output.
  • 6. 6 Tensorflow Architecture • Tensorflow architecture works in three parts: 1. Preprocessing the data 2. Build the model 3. Train and estimate the model • It is called Tensorflow because it takes input as a multi- dimensional array, also known as tensors. • You can construct a sort of flowchart of operations (called a Graph) that you want to perform on that input. • The input goes in at one end, and then it flows through this system of multiple operations and comes out the other end as output. • This is why it is called TensorFlow because the tensor goes in it flows through a list of operations, and then it comes out the other side.
  • 8. 8 Tensorflow Components Tensors. • In Tensorflow, all the computations involve tensors. • A tensor is a vector or matrix of n-dimensions that represents all types of data. • All values in a tensor hold identical data type with a known (or partially known) shape. The shape of the data is the dimensionality of the matrix or array. • A tensor can be originated from the input data or the result of a computation. • In TensorFlow, all the operations are conducted inside a graph. • The graph is a set of computation that takes place successively. Each operation is called an op node and are connected to each other. • The graph outlines the ops and connections between the nodes. However, it does not display the values. The edge of the nodes is the tensor, i.e., a way to populate the operation with data.
  • 9. 9 Tensorflow Components Graphs. • TensorFlow makes use of a graph framework. • The graph gathers and describes all the series computations done during the training. • The graph has lots of advantages: 1. It was done to run on multiple CPUs or GPUs and even mobile operating system 2. The portability of the graph allows to preserve the computations for immediate or later use. The graph can be saved to be executed in the future. 3. All the computations in the graph are done by connecting tensors together. A tensor has a node and an edge. The node carries the mathematical operation and produces an endpoints outputs. The edges the edges explain the input/output relationships between nodes.
  • 11. 11 Tensor • Tensor: A tensor is a mathematical object which is a standard way of representing data in deep learning. Tensors are defined as a multidimensional array or as a list. Tensors are identified by the following parameters. • Rank: The rank of a tensor is defined by the number of directions required to describe a tensor. Example: A zero rank tensor is a scalar, a first rank tensor is a vector, a second rank tensor is typically a square matrix, etc. • Shape: Number of rows and columns of a tensor. • Type: Data type assigned to the tensor’s elements. Example: integer, float, string, or Boolean. • Flow(Graph): Flow is the graphical representation of mathematical operations. TensorFlow performs computations with the help of dataflow graphs. It has nodes that represent the operations in your model. We then write code to build the graph, create a session, and execute that graph.
  • 20. 20 TF2 is imperative by default
  • 21. 21 TF1 : Build a graph then run it • Build a graph (Construction Phase) • Run it (Execution Phase)
  • 22. 22 Why is Tensorflow Popular? • TensorFlow is the best library of all because it is built to be accessible for everyone. • Tensorflow library incorporates different API to built at scale deep learning architecture like CNN or RNN. • TensorFlow is based on graph computation; it allows the developer to visualize the construction of the neural network with Tensorboad. This tool is helpful to debug the program. • • Finally, Tensorflow is built to be deployed at scale. It runs on CPU and GPU.
  • 23. 23