SlideShare a Scribd company logo
Introduction to
TensorFlow
Agenda
Our goals for tonight
Neural Network Review
What is TensorFlow?
Building Neural Nets
TensorBoard Visualization
1
2
3
4
Neural Networks Review
● Layers that combine previous features to form new features
● Each layer applies linear transformation, “weighing” previous features
● Nonlinear activation function
● Predicts through a feedforward propagation
● Learns through gradient descent and backpropagation
FEEDFORWARD
BACKPROPAGATE
Neural Network Libraries
Pros:
- Strength in CNNs
- Image processing
- Python interface
Cons:
- Inflexible
- C++
Pros:
- Widely used
- High performance
- Python
Cons:
- Somewhat bulky
- Can get low-level
Pros:
- Slimmer
- High performance
- Modular
Cons:
- Academic use
- Lua
Pros:
- Gaining support
- TensorBoard
- Python
Cons:
- Improving
performance
- Low content
Why Learn TensorFlow?
➢ Backed by Google
○ Constant development and frequent updates
○ DeepMind moving from Torch to TensorFlow
➢ Growing Community
○ Amount of example code and tutorials growing
○ Most commonly mentioned ML library on Stack Overflow
➢ Long term support
○ Recent TensorFlow 1.0 update, all code will be compatible
with 1.x updates
➢ Performance is not very good, but getting better.
○ About an order of magnitude slower than Theano
Tensors (side note)
➢ For Programmers: Tensors generalize multidimensional arrays.
➢ For Mathematicians: Tensors generalize scalars, vectors,
matrices and linear operators!
➢ TensorFlow describe data as tensors, and pass them through its
computation graph.
➢ Tensors flow through the network
TensorFlow Basics
Computation Graph
Construction Execution
TensorFlow Basics *
Variables
➢ Stores parameters in graph
➢ Can be trainable (optimized
during backprop) or untrainable
➢ Variety of initializers (e.g.
constant, normal, etc)
Operations
➢ Takes in variable and/or
outputs from other operations
➢ Can be fed into other ops and
linked in the graph
tf.constant(5.0)
tf.constant(3.0)
tf.random_normal
(mean=1, stddev=2)
tf.add()
tf.mul()
TensorFlow Basics *
Sessions
➢ Handles post-construction interactions with the graph
➢ Call the run method to evaluate tensors
3.0
5.0
1.68
8.0
13.44
tf.constant(5.0)
tf.constant(3.0)
tf.random_normal
(mean=1, stddev=2)
tf.add()
tf.mul()
sess = tf.Session()
sess.run(tf.global_variables_initializer())
sess.run(mult_op)
mult_op
TensorFlow Basics *
Optimizers
➢ Subclasses of tf.train.Optimizer
➢ Main functions: compute_gradients, apply_gradients, and
minimize
def minimize(self, loss_fn):
self.compute_gradients(loss_fn
)
self.apply_gradients(loss_fn)
Backpropagation on ops
Update trainable variables
Some loss functions are built into TensorFlow
➢ For example, tf.losses.mean_squared_error
➢ You can also define your own loss functions by combining ops
TensorFlow Basics
Placeholders
➢ A placeholder variable that can be filled in during execution
➢ On evaluation, specify a dictionary with placeholder key-value pairs
P2
P1
tf.random_normal
(mean=1,
stddev=2)
tf.add()
tf.mul()
1.0
2.0
0.94
3.0
2.82
sess.run(mul, feed_dict={P1: 1.0,
P2:2.0})
TensorBoard
Graph Visualization
➢ See visual representation of the graph
➢ Check and debug construction
Scoping
➢ Used to create abstractions
➢ Without scoping, graph can become a
convoluted mess
➢ Created by using a with statement
➢ Scope gets name prepended to variable
and operation names
TensorBoard
Visualizing Learning
➢ See tensor values during training
➢ Check and debug execution
Review
➢ TensorFlow is one of several ML libraries, each with pros and cons
➢ Expected long term support for TensorFlow
➢ Two stages: construction and execution
➢ Tensors are passed through chained operations
➢ Operations are evaluated at the execution stage with a session object
➢ Use optimizers to find and apply gradients for the training step
➢ TensorBoard used for graph visualization and visualizing learning
Thank You for Coming!Please fill out this feedback form:
https://mlab.typeform.com/to/t51Y09
Like our page on Facebook: www.facebook.com/berkeleyml
Email us: ml.at.berkeley@gmail.com
See our website: ml.berkeley.edu
Check out our blog: ml.berkeley.edu/blog

More Related Content

What's hot

Google TensorFlow Tutorial
Google TensorFlow TutorialGoogle TensorFlow Tutorial
Google TensorFlow Tutorial
台灣資料科學年會
 
Machine Learning - Introduction to Tensorflow
Machine Learning - Introduction to TensorflowMachine Learning - Introduction to Tensorflow
Machine Learning - Introduction to Tensorflow
Andrew Ferlitsch
 
Introduction To TensorFlow | Deep Learning Using TensorFlow | CloudxLab
Introduction To TensorFlow | Deep Learning Using TensorFlow | CloudxLabIntroduction To TensorFlow | Deep Learning Using TensorFlow | CloudxLab
Introduction To TensorFlow | Deep Learning Using TensorFlow | CloudxLab
CloudxLab
 
Introduction to Deep Learning, Keras, and TensorFlow
Introduction to Deep Learning, Keras, and TensorFlowIntroduction to Deep Learning, Keras, and TensorFlow
Introduction to Deep Learning, Keras, and TensorFlow
Sri Ambati
 
Working with tf.data (TF 2)
Working with tf.data (TF 2)Working with tf.data (TF 2)
Working with tf.data (TF 2)
Oswald Campesato
 
Introduction to Deep Learning, Keras, and Tensorflow
Introduction to Deep Learning, Keras, and TensorflowIntroduction to Deep Learning, Keras, and Tensorflow
Introduction to Deep Learning, Keras, and Tensorflow
Oswald Campesato
 
Introduction to TensorFlow 2
Introduction to TensorFlow 2Introduction to TensorFlow 2
Introduction to TensorFlow 2
Oswald Campesato
 
Introduction to TensorFlow 2 and Keras
Introduction to TensorFlow 2 and KerasIntroduction to TensorFlow 2 and Keras
Introduction to TensorFlow 2 and Keras
Oswald Campesato
 
Introducton to Convolutional Nerural Network with TensorFlow
Introducton to Convolutional Nerural Network with TensorFlowIntroducton to Convolutional Nerural Network with TensorFlow
Introducton to Convolutional Nerural Network with TensorFlow
Etsuji Nakai
 
H2 o berkeleydltf
H2 o berkeleydltfH2 o berkeleydltf
H2 o berkeleydltf
Oswald Campesato
 
Introduction to TensorFlow 2
Introduction to TensorFlow 2Introduction to TensorFlow 2
Introduction to TensorFlow 2
Oswald Campesato
 
Introduction to Machine Learning with TensorFlow
Introduction to Machine Learning with TensorFlowIntroduction to Machine Learning with TensorFlow
Introduction to Machine Learning with TensorFlow
Paolo Tomeo
 
TensorFlow Tutorial
TensorFlow TutorialTensorFlow Tutorial
TensorFlow Tutorial
NamHyuk Ahn
 
Explanation on Tensorflow example -Deep mnist for expert
Explanation on Tensorflow example -Deep mnist for expertExplanation on Tensorflow example -Deep mnist for expert
Explanation on Tensorflow example -Deep mnist for expert
홍배 김
 
TensorFlow in Your Browser
TensorFlow in Your BrowserTensorFlow in Your Browser
TensorFlow in Your Browser
Oswald Campesato
 
TensorFlow Dev Summit 2017 요약
TensorFlow Dev Summit 2017 요약TensorFlow Dev Summit 2017 요약
TensorFlow Dev Summit 2017 요약
Jin Joong Kim
 
TensorFlow Tutorial | Deep Learning Using TensorFlow | TensorFlow Tutorial Py...
TensorFlow Tutorial | Deep Learning Using TensorFlow | TensorFlow Tutorial Py...TensorFlow Tutorial | Deep Learning Using TensorFlow | TensorFlow Tutorial Py...
TensorFlow Tutorial | Deep Learning Using TensorFlow | TensorFlow Tutorial Py...
Edureka!
 
Effective Numerical Computation in NumPy and SciPy
Effective Numerical Computation in NumPy and SciPyEffective Numerical Computation in NumPy and SciPy
Effective Numerical Computation in NumPy and SciPy
Kimikazu Kato
 
"PyTorch Deep Learning Framework: Status and Directions," a Presentation from...
"PyTorch Deep Learning Framework: Status and Directions," a Presentation from..."PyTorch Deep Learning Framework: Status and Directions," a Presentation from...
"PyTorch Deep Learning Framework: Status and Directions," a Presentation from...
Edge AI and Vision Alliance
 
Introduction To Using TensorFlow & Deep Learning
Introduction To Using TensorFlow & Deep LearningIntroduction To Using TensorFlow & Deep Learning
Introduction To Using TensorFlow & Deep Learning
ali alemi
 

What's hot (20)

Google TensorFlow Tutorial
Google TensorFlow TutorialGoogle TensorFlow Tutorial
Google TensorFlow Tutorial
 
Machine Learning - Introduction to Tensorflow
Machine Learning - Introduction to TensorflowMachine Learning - Introduction to Tensorflow
Machine Learning - Introduction to Tensorflow
 
Introduction To TensorFlow | Deep Learning Using TensorFlow | CloudxLab
Introduction To TensorFlow | Deep Learning Using TensorFlow | CloudxLabIntroduction To TensorFlow | Deep Learning Using TensorFlow | CloudxLab
Introduction To TensorFlow | Deep Learning Using TensorFlow | CloudxLab
 
Introduction to Deep Learning, Keras, and TensorFlow
Introduction to Deep Learning, Keras, and TensorFlowIntroduction to Deep Learning, Keras, and TensorFlow
Introduction to Deep Learning, Keras, and TensorFlow
 
Working with tf.data (TF 2)
Working with tf.data (TF 2)Working with tf.data (TF 2)
Working with tf.data (TF 2)
 
Introduction to Deep Learning, Keras, and Tensorflow
Introduction to Deep Learning, Keras, and TensorflowIntroduction to Deep Learning, Keras, and Tensorflow
Introduction to Deep Learning, Keras, and Tensorflow
 
Introduction to TensorFlow 2
Introduction to TensorFlow 2Introduction to TensorFlow 2
Introduction to TensorFlow 2
 
Introduction to TensorFlow 2 and Keras
Introduction to TensorFlow 2 and KerasIntroduction to TensorFlow 2 and Keras
Introduction to TensorFlow 2 and Keras
 
Introducton to Convolutional Nerural Network with TensorFlow
Introducton to Convolutional Nerural Network with TensorFlowIntroducton to Convolutional Nerural Network with TensorFlow
Introducton to Convolutional Nerural Network with TensorFlow
 
H2 o berkeleydltf
H2 o berkeleydltfH2 o berkeleydltf
H2 o berkeleydltf
 
Introduction to TensorFlow 2
Introduction to TensorFlow 2Introduction to TensorFlow 2
Introduction to TensorFlow 2
 
Introduction to Machine Learning with TensorFlow
Introduction to Machine Learning with TensorFlowIntroduction to Machine Learning with TensorFlow
Introduction to Machine Learning with TensorFlow
 
TensorFlow Tutorial
TensorFlow TutorialTensorFlow Tutorial
TensorFlow Tutorial
 
Explanation on Tensorflow example -Deep mnist for expert
Explanation on Tensorflow example -Deep mnist for expertExplanation on Tensorflow example -Deep mnist for expert
Explanation on Tensorflow example -Deep mnist for expert
 
TensorFlow in Your Browser
TensorFlow in Your BrowserTensorFlow in Your Browser
TensorFlow in Your Browser
 
TensorFlow Dev Summit 2017 요약
TensorFlow Dev Summit 2017 요약TensorFlow Dev Summit 2017 요약
TensorFlow Dev Summit 2017 요약
 
TensorFlow Tutorial | Deep Learning Using TensorFlow | TensorFlow Tutorial Py...
TensorFlow Tutorial | Deep Learning Using TensorFlow | TensorFlow Tutorial Py...TensorFlow Tutorial | Deep Learning Using TensorFlow | TensorFlow Tutorial Py...
TensorFlow Tutorial | Deep Learning Using TensorFlow | TensorFlow Tutorial Py...
 
Effective Numerical Computation in NumPy and SciPy
Effective Numerical Computation in NumPy and SciPyEffective Numerical Computation in NumPy and SciPy
Effective Numerical Computation in NumPy and SciPy
 
"PyTorch Deep Learning Framework: Status and Directions," a Presentation from...
"PyTorch Deep Learning Framework: Status and Directions," a Presentation from..."PyTorch Deep Learning Framework: Status and Directions," a Presentation from...
"PyTorch Deep Learning Framework: Status and Directions," a Presentation from...
 
Introduction To Using TensorFlow & Deep Learning
Introduction To Using TensorFlow & Deep LearningIntroduction To Using TensorFlow & Deep Learning
Introduction To Using TensorFlow & Deep Learning
 

Viewers also liked

Housing prices project eeb
Housing prices project eebHousing prices project eeb
Housing prices project eeb
Erik Bebernes
 
La phonologie
La phonologieLa phonologie
La phonologie
Martín Díaz
 
Rabdomiólise Ruptura do tecido muscular que libera uma proteína nociva no san...
Rabdomiólise Ruptura do tecido muscular que libera uma proteína nociva no san...Rabdomiólise Ruptura do tecido muscular que libera uma proteína nociva no san...
Rabdomiólise Ruptura do tecido muscular que libera uma proteína nociva no san...
Jmaviael Mava
 
3Com 3C562-MODEM-CABLE
3Com 3C562-MODEM-CABLE3Com 3C562-MODEM-CABLE
3Com 3C562-MODEM-CABLE
savomir
 
Apresentacao SB CLUB
Apresentacao SB CLUB Apresentacao SB CLUB
Apresentacao SB CLUB
Wellington Fiat
 
5 técnicas para acelerar o desenvolvimento e reduzir Bugs em aplicações WEB
5 técnicas para acelerar o desenvolvimento e reduzir Bugs em aplicações WEB5 técnicas para acelerar o desenvolvimento e reduzir Bugs em aplicações WEB
5 técnicas para acelerar o desenvolvimento e reduzir Bugs em aplicações WEB
Rafael Chinelato Del Nero
 
Educación Ambiental Unidad I Tema 1
Educación Ambiental Unidad I   Tema 1Educación Ambiental Unidad I   Tema 1
Educación Ambiental Unidad I Tema 1
Iris Vasquez
 
Pasos para quemar un cd o dvd
Pasos para quemar un cd o dvdPasos para quemar un cd o dvd
Pasos para quemar un cd o dvd
deimar0
 
Punto y línea sobre el plano
Punto y línea sobre el planoPunto y línea sobre el plano
Punto y línea sobre el plano
shaira pulido
 
From Boardroom to C-Suite: Why Would a Company Pick a Current Director as CEO?
From Boardroom to C-Suite: Why Would a Company Pick a Current Director as CEO? From Boardroom to C-Suite: Why Would a Company Pick a Current Director as CEO?
From Boardroom to C-Suite: Why Would a Company Pick a Current Director as CEO?
Stanford GSB Corporate Governance Research Initiative
 
La mediacion
La mediacionLa mediacion
La mediacion
ImanaidaParra
 
Presentation "eleven"
Presentation "eleven"Presentation "eleven"
Presentation "eleven"
Francisco Aresi
 
Movimentos sociais na Republica Oligárquica
Movimentos sociais na Republica Oligárquica Movimentos sociais na Republica Oligárquica
Movimentos sociais na Republica Oligárquica
alinesantana1422
 
Validadores digitales
Validadores digitalesValidadores digitales
Validadores digitales
Daniela Sandoval
 
Neural Networks with Google TensorFlow
Neural Networks with Google TensorFlowNeural Networks with Google TensorFlow
Neural Networks with Google TensorFlow
Darshan Patel
 
Introdução a Machine Learning e TensorFlow
Introdução a Machine Learning e TensorFlowIntrodução a Machine Learning e TensorFlow
Introdução a Machine Learning e TensorFlow
Guilherme Campos
 
CCI BSA-M65-19R010-02
CCI BSA-M65-19R010-02CCI BSA-M65-19R010-02
CCI BSA-M65-19R010-02
savomir
 
Quintel QS6658-2C
Quintel QS6658-2CQuintel QS6658-2C
Quintel QS6658-2C
savomir
 
Informatica
InformaticaInformatica
Informatica
sergioquiroga1997
 
(Programa da disciplina administração financeira e orçamentária (uema ))
(Programa da disciplina administração financeira e orçamentária  (uema ))(Programa da disciplina administração financeira e orçamentária  (uema ))
(Programa da disciplina administração financeira e orçamentária (uema ))
flavioxconsult
 

Viewers also liked (20)

Housing prices project eeb
Housing prices project eebHousing prices project eeb
Housing prices project eeb
 
La phonologie
La phonologieLa phonologie
La phonologie
 
Rabdomiólise Ruptura do tecido muscular que libera uma proteína nociva no san...
Rabdomiólise Ruptura do tecido muscular que libera uma proteína nociva no san...Rabdomiólise Ruptura do tecido muscular que libera uma proteína nociva no san...
Rabdomiólise Ruptura do tecido muscular que libera uma proteína nociva no san...
 
3Com 3C562-MODEM-CABLE
3Com 3C562-MODEM-CABLE3Com 3C562-MODEM-CABLE
3Com 3C562-MODEM-CABLE
 
Apresentacao SB CLUB
Apresentacao SB CLUB Apresentacao SB CLUB
Apresentacao SB CLUB
 
5 técnicas para acelerar o desenvolvimento e reduzir Bugs em aplicações WEB
5 técnicas para acelerar o desenvolvimento e reduzir Bugs em aplicações WEB5 técnicas para acelerar o desenvolvimento e reduzir Bugs em aplicações WEB
5 técnicas para acelerar o desenvolvimento e reduzir Bugs em aplicações WEB
 
Educación Ambiental Unidad I Tema 1
Educación Ambiental Unidad I   Tema 1Educación Ambiental Unidad I   Tema 1
Educación Ambiental Unidad I Tema 1
 
Pasos para quemar un cd o dvd
Pasos para quemar un cd o dvdPasos para quemar un cd o dvd
Pasos para quemar un cd o dvd
 
Punto y línea sobre el plano
Punto y línea sobre el planoPunto y línea sobre el plano
Punto y línea sobre el plano
 
From Boardroom to C-Suite: Why Would a Company Pick a Current Director as CEO?
From Boardroom to C-Suite: Why Would a Company Pick a Current Director as CEO? From Boardroom to C-Suite: Why Would a Company Pick a Current Director as CEO?
From Boardroom to C-Suite: Why Would a Company Pick a Current Director as CEO?
 
La mediacion
La mediacionLa mediacion
La mediacion
 
Presentation "eleven"
Presentation "eleven"Presentation "eleven"
Presentation "eleven"
 
Movimentos sociais na Republica Oligárquica
Movimentos sociais na Republica Oligárquica Movimentos sociais na Republica Oligárquica
Movimentos sociais na Republica Oligárquica
 
Validadores digitales
Validadores digitalesValidadores digitales
Validadores digitales
 
Neural Networks with Google TensorFlow
Neural Networks with Google TensorFlowNeural Networks with Google TensorFlow
Neural Networks with Google TensorFlow
 
Introdução a Machine Learning e TensorFlow
Introdução a Machine Learning e TensorFlowIntrodução a Machine Learning e TensorFlow
Introdução a Machine Learning e TensorFlow
 
CCI BSA-M65-19R010-02
CCI BSA-M65-19R010-02CCI BSA-M65-19R010-02
CCI BSA-M65-19R010-02
 
Quintel QS6658-2C
Quintel QS6658-2CQuintel QS6658-2C
Quintel QS6658-2C
 
Informatica
InformaticaInformatica
Informatica
 
(Programa da disciplina administração financeira e orçamentária (uema ))
(Programa da disciplina administração financeira e orçamentária  (uema ))(Programa da disciplina administração financeira e orçamentária  (uema ))
(Programa da disciplina administração financeira e orçamentária (uema ))
 

Similar to Introduction to TensorFlow, by Machine Learning at Berkeley

A Tour of Tensorflow's APIs
A Tour of Tensorflow's APIsA Tour of Tensorflow's APIs
A Tour of Tensorflow's APIs
Dean Wyatte
 
Overview of TensorFlow For Natural Language Processing
Overview of TensorFlow For Natural Language ProcessingOverview of TensorFlow For Natural Language Processing
Overview of TensorFlow For Natural Language Processing
ananth
 
Hands-on Learning with KubeFlow + Keras/TensorFlow 2.0 + TF Extended (TFX) + ...
Hands-on Learning with KubeFlow + Keras/TensorFlow 2.0 + TF Extended (TFX) + ...Hands-on Learning with KubeFlow + Keras/TensorFlow 2.0 + TF Extended (TFX) + ...
Hands-on Learning with KubeFlow + Keras/TensorFlow 2.0 + TF Extended (TFX) + ...
Chris Fregly
 
running Tensorflow in Production
running Tensorflow in Productionrunning Tensorflow in Production
running Tensorflow in Production
Matthias Feys
 
Natural language processing open seminar For Tensorflow usage
Natural language processing open seminar For Tensorflow usageNatural language processing open seminar For Tensorflow usage
Natural language processing open seminar For Tensorflow usage
hyunyoung Lee
 
Introduction to Chainer
Introduction to ChainerIntroduction to Chainer
Introduction to Chainer
Seiya Tokui
 
running stable diffusion on android
running stable diffusion on androidrunning stable diffusion on android
running stable diffusion on android
Koan-Sin Tan
 
Meetup tensorframes
Meetup tensorframesMeetup tensorframes
Meetup tensorframes
Paolo Platter
 
190111 tf2 preview_jwkang_pub
190111 tf2 preview_jwkang_pub190111 tf2 preview_jwkang_pub
190111 tf2 preview_jwkang_pub
Jaewook. Kang
 
Learn about Tensorflow for Deep Learning now! Part 1
Learn about Tensorflow for Deep Learning now! Part 1Learn about Tensorflow for Deep Learning now! Part 1
Learn about Tensorflow for Deep Learning now! Part 1
Tyrone Systems
 
Boosting machine learning workflow with TensorFlow 2.0
Boosting machine learning workflow with TensorFlow 2.0Boosting machine learning workflow with TensorFlow 2.0
Boosting machine learning workflow with TensorFlow 2.0
Jeongkyu Shin
 
Data Summer Conf 2018, “How to accelerate your neural net inference with Tens...
Data Summer Conf 2018, “How to accelerate your neural net inference with Tens...Data Summer Conf 2018, “How to accelerate your neural net inference with Tens...
Data Summer Conf 2018, “How to accelerate your neural net inference with Tens...
Provectus
 
TensorFlowOnSpark: Scalable TensorFlow Learning on Spark Clusters
TensorFlowOnSpark: Scalable TensorFlow Learning on Spark ClustersTensorFlowOnSpark: Scalable TensorFlow Learning on Spark Clusters
TensorFlowOnSpark: Scalable TensorFlow Learning on Spark Clusters
DataWorks Summit
 
Language translation with Deep Learning (RNN) with TensorFlow
Language translation with Deep Learning (RNN) with TensorFlowLanguage translation with Deep Learning (RNN) with TensorFlow
Language translation with Deep Learning (RNN) with TensorFlow
S N
 
NVIDIA 深度學習教育機構 (DLI): Image segmentation with tensorflow
NVIDIA 深度學習教育機構 (DLI): Image segmentation with tensorflowNVIDIA 深度學習教育機構 (DLI): Image segmentation with tensorflow
NVIDIA 深度學習教育機構 (DLI): Image segmentation with tensorflow
NVIDIA Taiwan
 
Towards Safe Automated Refactoring of Imperative Deep Learning Programs to Gr...
Towards Safe Automated Refactoring of Imperative Deep Learning Programs to Gr...Towards Safe Automated Refactoring of Imperative Deep Learning Programs to Gr...
Towards Safe Automated Refactoring of Imperative Deep Learning Programs to Gr...
Raffi Khatchadourian
 
Advanced Spark and TensorFlow Meetup May 26, 2016
Advanced Spark and TensorFlow Meetup May 26, 2016Advanced Spark and TensorFlow Meetup May 26, 2016
Advanced Spark and TensorFlow Meetup May 26, 2016
Chris Fregly
 
Introduction to Tensor Flow-v1.pptx
Introduction to Tensor Flow-v1.pptxIntroduction to Tensor Flow-v1.pptx
Introduction to Tensor Flow-v1.pptx
Janagi Raman S
 
High Performance Distributed TensorFlow in Production with GPUs - NIPS 2017 -...
High Performance Distributed TensorFlow in Production with GPUs - NIPS 2017 -...High Performance Distributed TensorFlow in Production with GPUs - NIPS 2017 -...
High Performance Distributed TensorFlow in Production with GPUs - NIPS 2017 -...
Chris Fregly
 
TFLite NNAPI and GPU Delegates
TFLite NNAPI and GPU DelegatesTFLite NNAPI and GPU Delegates
TFLite NNAPI and GPU Delegates
Koan-Sin Tan
 

Similar to Introduction to TensorFlow, by Machine Learning at Berkeley (20)

A Tour of Tensorflow's APIs
A Tour of Tensorflow's APIsA Tour of Tensorflow's APIs
A Tour of Tensorflow's APIs
 
Overview of TensorFlow For Natural Language Processing
Overview of TensorFlow For Natural Language ProcessingOverview of TensorFlow For Natural Language Processing
Overview of TensorFlow For Natural Language Processing
 
Hands-on Learning with KubeFlow + Keras/TensorFlow 2.0 + TF Extended (TFX) + ...
Hands-on Learning with KubeFlow + Keras/TensorFlow 2.0 + TF Extended (TFX) + ...Hands-on Learning with KubeFlow + Keras/TensorFlow 2.0 + TF Extended (TFX) + ...
Hands-on Learning with KubeFlow + Keras/TensorFlow 2.0 + TF Extended (TFX) + ...
 
running Tensorflow in Production
running Tensorflow in Productionrunning Tensorflow in Production
running Tensorflow in Production
 
Natural language processing open seminar For Tensorflow usage
Natural language processing open seminar For Tensorflow usageNatural language processing open seminar For Tensorflow usage
Natural language processing open seminar For Tensorflow usage
 
Introduction to Chainer
Introduction to ChainerIntroduction to Chainer
Introduction to Chainer
 
running stable diffusion on android
running stable diffusion on androidrunning stable diffusion on android
running stable diffusion on android
 
Meetup tensorframes
Meetup tensorframesMeetup tensorframes
Meetup tensorframes
 
190111 tf2 preview_jwkang_pub
190111 tf2 preview_jwkang_pub190111 tf2 preview_jwkang_pub
190111 tf2 preview_jwkang_pub
 
Learn about Tensorflow for Deep Learning now! Part 1
Learn about Tensorflow for Deep Learning now! Part 1Learn about Tensorflow for Deep Learning now! Part 1
Learn about Tensorflow for Deep Learning now! Part 1
 
Boosting machine learning workflow with TensorFlow 2.0
Boosting machine learning workflow with TensorFlow 2.0Boosting machine learning workflow with TensorFlow 2.0
Boosting machine learning workflow with TensorFlow 2.0
 
Data Summer Conf 2018, “How to accelerate your neural net inference with Tens...
Data Summer Conf 2018, “How to accelerate your neural net inference with Tens...Data Summer Conf 2018, “How to accelerate your neural net inference with Tens...
Data Summer Conf 2018, “How to accelerate your neural net inference with Tens...
 
TensorFlowOnSpark: Scalable TensorFlow Learning on Spark Clusters
TensorFlowOnSpark: Scalable TensorFlow Learning on Spark ClustersTensorFlowOnSpark: Scalable TensorFlow Learning on Spark Clusters
TensorFlowOnSpark: Scalable TensorFlow Learning on Spark Clusters
 
Language translation with Deep Learning (RNN) with TensorFlow
Language translation with Deep Learning (RNN) with TensorFlowLanguage translation with Deep Learning (RNN) with TensorFlow
Language translation with Deep Learning (RNN) with TensorFlow
 
NVIDIA 深度學習教育機構 (DLI): Image segmentation with tensorflow
NVIDIA 深度學習教育機構 (DLI): Image segmentation with tensorflowNVIDIA 深度學習教育機構 (DLI): Image segmentation with tensorflow
NVIDIA 深度學習教育機構 (DLI): Image segmentation with tensorflow
 
Towards Safe Automated Refactoring of Imperative Deep Learning Programs to Gr...
Towards Safe Automated Refactoring of Imperative Deep Learning Programs to Gr...Towards Safe Automated Refactoring of Imperative Deep Learning Programs to Gr...
Towards Safe Automated Refactoring of Imperative Deep Learning Programs to Gr...
 
Advanced Spark and TensorFlow Meetup May 26, 2016
Advanced Spark and TensorFlow Meetup May 26, 2016Advanced Spark and TensorFlow Meetup May 26, 2016
Advanced Spark and TensorFlow Meetup May 26, 2016
 
Introduction to Tensor Flow-v1.pptx
Introduction to Tensor Flow-v1.pptxIntroduction to Tensor Flow-v1.pptx
Introduction to Tensor Flow-v1.pptx
 
High Performance Distributed TensorFlow in Production with GPUs - NIPS 2017 -...
High Performance Distributed TensorFlow in Production with GPUs - NIPS 2017 -...High Performance Distributed TensorFlow in Production with GPUs - NIPS 2017 -...
High Performance Distributed TensorFlow in Production with GPUs - NIPS 2017 -...
 
TFLite NNAPI and GPU Delegates
TFLite NNAPI and GPU DelegatesTFLite NNAPI and GPU Delegates
TFLite NNAPI and GPU Delegates
 

Recently uploaded

Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.ILBeyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
Natan Silnitsky
 
Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology SolutionsProsigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns
 
SOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar Research Team: Latest Activities of IntelBrokerSOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar
 
Quarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden ExtensionsQuarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden Extensions
Max Andersen
 
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, BetterWebinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
XfilesPro
 
May Marketo Masterclass, London MUG May 22 2024.pdf
May Marketo Masterclass, London MUG May 22 2024.pdfMay Marketo Masterclass, London MUG May 22 2024.pdf
May Marketo Masterclass, London MUG May 22 2024.pdf
Adele Miller
 
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERRORTROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
Tier1 app
 
Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...
Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...
Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...
Mind IT Systems
 
Cyaniclab : Software Development Agency Portfolio.pdf
Cyaniclab : Software Development Agency Portfolio.pdfCyaniclab : Software Development Agency Portfolio.pdf
Cyaniclab : Software Development Agency Portfolio.pdf
Cyanic lab
 
Navigating the Metaverse: A Journey into Virtual Evolution"
Navigating the Metaverse: A Journey into Virtual Evolution"Navigating the Metaverse: A Journey into Virtual Evolution"
Navigating the Metaverse: A Journey into Virtual Evolution"
Donna Lenk
 
BoxLang: Review our Visionary Licenses of 2024
BoxLang: Review our Visionary Licenses of 2024BoxLang: Review our Visionary Licenses of 2024
BoxLang: Review our Visionary Licenses of 2024
Ortus Solutions, Corp
 
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdfDominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
AMB-Review
 
Enhancing Project Management Efficiency_ Leveraging AI Tools like ChatGPT.pdf
Enhancing Project Management Efficiency_ Leveraging AI Tools like ChatGPT.pdfEnhancing Project Management Efficiency_ Leveraging AI Tools like ChatGPT.pdf
Enhancing Project Management Efficiency_ Leveraging AI Tools like ChatGPT.pdf
Jay Das
 
Developing Distributed High-performance Computing Capabilities of an Open Sci...
Developing Distributed High-performance Computing Capabilities of an Open Sci...Developing Distributed High-performance Computing Capabilities of an Open Sci...
Developing Distributed High-performance Computing Capabilities of an Open Sci...
Globus
 
Providing Globus Services to Users of JASMIN for Environmental Data Analysis
Providing Globus Services to Users of JASMIN for Environmental Data AnalysisProviding Globus Services to Users of JASMIN for Environmental Data Analysis
Providing Globus Services to Users of JASMIN for Environmental Data Analysis
Globus
 
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Globus
 
How to Position Your Globus Data Portal for Success Ten Good Practices
How to Position Your Globus Data Portal for Success Ten Good PracticesHow to Position Your Globus Data Portal for Success Ten Good Practices
How to Position Your Globus Data Portal for Success Ten Good Practices
Globus
 
Into the Box 2024 - Keynote Day 2 Slides.pdf
Into the Box 2024 - Keynote Day 2 Slides.pdfInto the Box 2024 - Keynote Day 2 Slides.pdf
Into the Box 2024 - Keynote Day 2 Slides.pdf
Ortus Solutions, Corp
 
A Sighting of filterA in Typelevel Rite of Passage
A Sighting of filterA in Typelevel Rite of PassageA Sighting of filterA in Typelevel Rite of Passage
A Sighting of filterA in Typelevel Rite of Passage
Philip Schwarz
 
Enhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdfEnhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdf
Globus
 

Recently uploaded (20)

Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.ILBeyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
 
Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology SolutionsProsigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology Solutions
 
SOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar Research Team: Latest Activities of IntelBrokerSOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar Research Team: Latest Activities of IntelBroker
 
Quarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden ExtensionsQuarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden Extensions
 
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, BetterWebinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
 
May Marketo Masterclass, London MUG May 22 2024.pdf
May Marketo Masterclass, London MUG May 22 2024.pdfMay Marketo Masterclass, London MUG May 22 2024.pdf
May Marketo Masterclass, London MUG May 22 2024.pdf
 
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERRORTROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
 
Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...
Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...
Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...
 
Cyaniclab : Software Development Agency Portfolio.pdf
Cyaniclab : Software Development Agency Portfolio.pdfCyaniclab : Software Development Agency Portfolio.pdf
Cyaniclab : Software Development Agency Portfolio.pdf
 
Navigating the Metaverse: A Journey into Virtual Evolution"
Navigating the Metaverse: A Journey into Virtual Evolution"Navigating the Metaverse: A Journey into Virtual Evolution"
Navigating the Metaverse: A Journey into Virtual Evolution"
 
BoxLang: Review our Visionary Licenses of 2024
BoxLang: Review our Visionary Licenses of 2024BoxLang: Review our Visionary Licenses of 2024
BoxLang: Review our Visionary Licenses of 2024
 
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdfDominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
 
Enhancing Project Management Efficiency_ Leveraging AI Tools like ChatGPT.pdf
Enhancing Project Management Efficiency_ Leveraging AI Tools like ChatGPT.pdfEnhancing Project Management Efficiency_ Leveraging AI Tools like ChatGPT.pdf
Enhancing Project Management Efficiency_ Leveraging AI Tools like ChatGPT.pdf
 
Developing Distributed High-performance Computing Capabilities of an Open Sci...
Developing Distributed High-performance Computing Capabilities of an Open Sci...Developing Distributed High-performance Computing Capabilities of an Open Sci...
Developing Distributed High-performance Computing Capabilities of an Open Sci...
 
Providing Globus Services to Users of JASMIN for Environmental Data Analysis
Providing Globus Services to Users of JASMIN for Environmental Data AnalysisProviding Globus Services to Users of JASMIN for Environmental Data Analysis
Providing Globus Services to Users of JASMIN for Environmental Data Analysis
 
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
 
How to Position Your Globus Data Portal for Success Ten Good Practices
How to Position Your Globus Data Portal for Success Ten Good PracticesHow to Position Your Globus Data Portal for Success Ten Good Practices
How to Position Your Globus Data Portal for Success Ten Good Practices
 
Into the Box 2024 - Keynote Day 2 Slides.pdf
Into the Box 2024 - Keynote Day 2 Slides.pdfInto the Box 2024 - Keynote Day 2 Slides.pdf
Into the Box 2024 - Keynote Day 2 Slides.pdf
 
A Sighting of filterA in Typelevel Rite of Passage
A Sighting of filterA in Typelevel Rite of PassageA Sighting of filterA in Typelevel Rite of Passage
A Sighting of filterA in Typelevel Rite of Passage
 
Enhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdfEnhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdf
 

Introduction to TensorFlow, by Machine Learning at Berkeley

  • 2. Agenda Our goals for tonight Neural Network Review What is TensorFlow? Building Neural Nets TensorBoard Visualization 1 2 3 4
  • 3. Neural Networks Review ● Layers that combine previous features to form new features ● Each layer applies linear transformation, “weighing” previous features ● Nonlinear activation function ● Predicts through a feedforward propagation ● Learns through gradient descent and backpropagation FEEDFORWARD BACKPROPAGATE
  • 4. Neural Network Libraries Pros: - Strength in CNNs - Image processing - Python interface Cons: - Inflexible - C++ Pros: - Widely used - High performance - Python Cons: - Somewhat bulky - Can get low-level Pros: - Slimmer - High performance - Modular Cons: - Academic use - Lua Pros: - Gaining support - TensorBoard - Python Cons: - Improving performance - Low content
  • 5. Why Learn TensorFlow? ➢ Backed by Google ○ Constant development and frequent updates ○ DeepMind moving from Torch to TensorFlow ➢ Growing Community ○ Amount of example code and tutorials growing ○ Most commonly mentioned ML library on Stack Overflow ➢ Long term support ○ Recent TensorFlow 1.0 update, all code will be compatible with 1.x updates ➢ Performance is not very good, but getting better. ○ About an order of magnitude slower than Theano
  • 6. Tensors (side note) ➢ For Programmers: Tensors generalize multidimensional arrays. ➢ For Mathematicians: Tensors generalize scalars, vectors, matrices and linear operators! ➢ TensorFlow describe data as tensors, and pass them through its computation graph. ➢ Tensors flow through the network
  • 8. TensorFlow Basics * Variables ➢ Stores parameters in graph ➢ Can be trainable (optimized during backprop) or untrainable ➢ Variety of initializers (e.g. constant, normal, etc) Operations ➢ Takes in variable and/or outputs from other operations ➢ Can be fed into other ops and linked in the graph tf.constant(5.0) tf.constant(3.0) tf.random_normal (mean=1, stddev=2) tf.add() tf.mul()
  • 9. TensorFlow Basics * Sessions ➢ Handles post-construction interactions with the graph ➢ Call the run method to evaluate tensors 3.0 5.0 1.68 8.0 13.44 tf.constant(5.0) tf.constant(3.0) tf.random_normal (mean=1, stddev=2) tf.add() tf.mul() sess = tf.Session() sess.run(tf.global_variables_initializer()) sess.run(mult_op) mult_op
  • 10. TensorFlow Basics * Optimizers ➢ Subclasses of tf.train.Optimizer ➢ Main functions: compute_gradients, apply_gradients, and minimize def minimize(self, loss_fn): self.compute_gradients(loss_fn ) self.apply_gradients(loss_fn) Backpropagation on ops Update trainable variables Some loss functions are built into TensorFlow ➢ For example, tf.losses.mean_squared_error ➢ You can also define your own loss functions by combining ops
  • 11. TensorFlow Basics Placeholders ➢ A placeholder variable that can be filled in during execution ➢ On evaluation, specify a dictionary with placeholder key-value pairs P2 P1 tf.random_normal (mean=1, stddev=2) tf.add() tf.mul() 1.0 2.0 0.94 3.0 2.82 sess.run(mul, feed_dict={P1: 1.0, P2:2.0})
  • 12. TensorBoard Graph Visualization ➢ See visual representation of the graph ➢ Check and debug construction Scoping ➢ Used to create abstractions ➢ Without scoping, graph can become a convoluted mess ➢ Created by using a with statement ➢ Scope gets name prepended to variable and operation names
  • 13. TensorBoard Visualizing Learning ➢ See tensor values during training ➢ Check and debug execution
  • 14. Review ➢ TensorFlow is one of several ML libraries, each with pros and cons ➢ Expected long term support for TensorFlow ➢ Two stages: construction and execution ➢ Tensors are passed through chained operations ➢ Operations are evaluated at the execution stage with a session object ➢ Use optimizers to find and apply gradients for the training step ➢ TensorBoard used for graph visualization and visualizing learning
  • 15. Thank You for Coming!Please fill out this feedback form: https://mlab.typeform.com/to/t51Y09 Like our page on Facebook: www.facebook.com/berkeleyml Email us: ml.at.berkeley@gmail.com See our website: ml.berkeley.edu Check out our blog: ml.berkeley.edu/blog