Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Getting Started with TensorFlow
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Rebecca Murphy
March 21, 2016
Programming
1.6k
0
Share
Getting Started with TensorFlow
Rebecca Murphy
March 21, 2016
More Decks by Rebecca Murphy
See All by Rebecca Murphy
Refreerank
rebecca_roisin
0
120
pyFRET
rebecca_roisin
0
220
Other Decks in Programming
See All in Programming
GoのDB アクセスにおける 「型安全」と「柔軟性」の両立 - Bob という選択肢
tak848
0
290
コードレビューをしない選択 #でぃーぷらすトウキョウ
kajitack
3
1.2k
AIコードレビューの導入・運用と AI駆動開発における「AI4QA」の取り組みについて
hagevvashi
0
580
[PHPerKaigi 2026]PHPerKaigi2025の企画CodeGolfが最高すぎて社内で内製して半年運営して得た内製と運営の知見
ikezoemakoto
0
310
L’IA au service des devs : Anatomie d'un assistant de Code Review
toham
0
150
Claude Codeログ基盤の構築
giginet
PRO
7
3.8k
飯MCP
yusukebe
0
440
Coding as Prompting Since 2025
ragingwind
0
560
Understanding Apache Lucene - More than just full-text search
spinscale
0
150
条件判定に名前、つけてますか? #phperkaigi #c
77web
2
890
Strategy for Finding a Problem for OSS: With Real Examples
kibitan
0
130
「接続」—パフォーマンスチューニングの最後の一手 〜点と点を結ぶ、その一瞬のために〜
kentaroutakeda
4
2.2k
Featured
See All Featured
Faster Mobile Websites
deanohume
310
31k
16th Malabo Montpellier Forum Presentation
akademiya2063
PRO
0
87
GraphQLの誤解/rethinking-graphql
sonatard
75
12k
Unsuck your backbone
ammeep
672
58k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
35
2.4k
Build The Right Thing And Hit Your Dates
maggiecrowley
39
3.1k
Building Better People: How to give real-time feedback that sticks.
wjessup
370
20k
Side Projects
sachag
455
43k
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
320
The browser strikes back
jonoalderson
0
860
Building a Modern Day E-commerce SEO Strategy
aleyda
45
9k
The Hidden Cost of Media on the Web [PixelPalooza 2025]
tammyeverts
2
260
Transcript
TensorFlow Tutorial Rebecca Murphy
[email protected]
@rebecca_roisin TensorFlow Meetup Monday 21st
March 2016
Talk Overview • TensorFlow overview • Programming Model • Mechanics
of TensorFlow • Installation • Model Definition • Fitting • Checkpointing • TensorBoard visualisations • Why TensorFlow?
TensorFlow: Overview
What Is TensorFlow? • Google’s 2nd generation deep learning library
• Simple API (Python, C++) for: • Describing Machine Learning models • Implementing Machine Learning algorithms
What Can We Do With TensorFlow? • Regression models •
Neural networks • Deep learning: • Distributed representations • Convolutional Networks • Recurrent Neural Networks • LSTM Neural Networks
TensorFlow: Programming Model
TensorFlow: What Is a Tensor? • Tensor: n-dimensional array •
Scalar: 0D Tensor • Vector: 1D Tensor • Matrix: 2D Tensor • Typed: • Int, double, complex, string
Tensor Flows • Tensor Flow computations: stateful dataflow graphs •
Deep learning model = Directed graph • Node: (mathematical) operation • Edge: • Control dependencies • Data flow • Describe graph -> initialize -> execute (parts of ) graph
TensorFlow: Mechanics
Installing TensorFlow • Python API • Python 2.7 • Python
3.3+ • Setup instructions • pip install: • pip install --upgrade https://storage.googleapis. com/tensorflow/mac/tensorflow-0.7.1-cp27-none-any.whl • Docker: • docker run -it b.gcr.io/tensorflow/tensorflow
Mechanics of Learning • Define model • Load data •
Feed data • Make predictions • Evaluate • Visualise
Example Code • Try-tf github repositories • Associated blogpost •
Jason Baldridge @jasonbaldridge
Let’s get Started
Defining the Model
Model Definition: Key Features (1) • Tensor shapes are pre-defined:
• Tensors support mathematical manipulation • Operations are nodes in the model graph
Model Definition: Key Features (2) • Built-in functions for common
Deep Learning operations: • See Neural Network API for more • Gradient descent optimisation: • Variables store current state of model
Training the Model: Loading Data (1) • Load data into
variables • Need to write custom functions to parse data
Training the Model: Loading Data (2)
Training the Model: Sessions • Model graph describes computations •
Computations evaluated within a session: • Places graph onto CPU / GPU • Supplies methods to evaluate graph operations
The Feed Dict: Training the Model • Predefined placeholder tensors
• Feed-dict supplies batch of data
Training the Model: Evaluation • Pre-defined evaluation nodes compare predicted
and true labels: • Evaluate accuracy function within a session:
Checkpoints: Saving Models • Saver class allows model state to
be stored and reloaded • Use checkpoints to periodically save the state of the model
• Saver class allows model state to be stored and
reloaded • Restore a previously trained model Checkpoints: Loading Saved Models
Flags: Controlling Training • tf.app.flags: set command-line arguments • Wraps
python gflags • tf.app.run() parses flags before calling main()
TensorBoard: Visualising Learning
TensorBoard: Basics • TensorFlow visualisation tool • View • Graph
models • Training behaviour • Simple modifications to model code • Browser-based tool
TensorBoard: Annotations
TensorBoard: Scopes
TensorBoard: Saving Output • Set up summary and writer objects
• Periodically run evaluation and store output: • tensorboard --logdir=try_tf_logs/
TensorBoard: Model Visualisation (1)
TensorBoard: Model Visualisation (2)
TensorBoard: Training Visualisation (1)
TensorBoard: Training Visualisation (2)
TensorFlow: Where Next?
Why Use TensorFlow: Great Examples • TensorFlow Tutorials • Handwriting
generation from @hardmaru • Next letter prediction from @karpathy
Why Use TensorFlow: Active Community
TensorFlow: Future Developments • Improved memory usage in gradient calculations
• JIT Compilation • Improved node execution scheduling • Support for parallelisation across many machines • Support for more languages (Java, Lua, Go, R …) • Source: TensorFlow Whitepaper
Thank You!
Questions?