Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
TesnsorFlowJs.pdf
Search
Hiren Dave
October 12, 2019
Technology
100
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
TesnsorFlowJs.pdf
Hiren Dave
October 12, 2019
More Decks by Hiren Dave
See All by Hiren Dave
Demystifying UI security
hirendave
0
50
Whats New in Web Platform from Google I/O 2022
hirendave
0
90
Introduction to Web3.0
hirendave
0
260
Using Vite with Laravel
hirendave
0
60
Step Into World of NodeJS
hirendave
0
51
Transfer Learning with TensorFlow
hirendave
0
80
Reactive Programming in Angular with RxJs
hirendave
0
85
AMP-lify your Web Apps
hirendave
0
39
Laravel Eloquent & Its Hidden Power
hirendave
0
130
Other Decks in Technology
See All in Technology
「大丈夫そう?」をObservabilityで確かめる
mrmtsu
0
210
AgentCore Runtime上にAgentic Coding基盤を構築・展開する際の設計ポイントと限界点 / Design considerations and limitations when building an agentic coding platform on AgentCore Runtime
har1101
7
810
Azure Copilot Resiliency Agentをいろいろ試してみる
tomokusaba
0
130
その Lambda、8分で 管理者権限まで奪われます
k1nakayama
7
3.8k
2026-09-08 そのJavaモダナイゼーション、AIに丸投げで大丈夫?IBM Bobで変わる品質と効率
yutanonaka
1
210
VS Code × GitHub Copilot での Fabric 開発
ryomaru0825
1
120
AIエージェントを安全で速い現場監督にする:Jev・Obsidian・メタハーネス
x5gtrn
PRO
0
140
TiDBファミリーにDWHが新登場!! TiDB最新情報 / TiDB update 202609
yoshiakiyamasaki
0
140
C#未経験の僕がAIに読めるコードを書かせるまで
maguroalternative
0
340
AI駆動開発で仕様はどこまで書くべきか? ― 人とAIの責務境界から考える開発プロセスの実践
takahiromatsui
1
150
「今盗んで、後で解く」に備える ― AWSのポスト量子暗号入門
yama3133
2
260
認知負荷を吸収し、プロダクトをまたぐPR Preview基盤の設計事例
taiki45
2
510
Featured
See All Featured
Designing Powerful Visuals for Engaging Learning
tmiket
1
580
svc-hook: hooking system calls on ARM64 by binary rewriting
retrage
2
590
Highjacked: Video Game Concept Design
rkendrick25
PRO
1
460
Building an army of robots
kneath
307
47k
Navigating the Design Leadership Dip - Product Design Week Design Leaders+ Conference 2024
apolaine
2
450
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
1
540
技術選定の審美眼(2025年版) / Understanding the Spiral of Technologies 2025 edition
twada
PRO
120
120k
Darren the Foodie - Storyboard
khoart
PRO
4
4k
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
440
Large-scale JavaScript Application Architecture
addyosmani
515
110k
Test your architecture with Archunit
thirion
2
2.4k
Google's AI Overviews - The New Search
badams
0
1.6k
Transcript
Hiren Dave Machine Learning in Browser With TensorFlow.js
What is a Machine Learning?
Data Training Prediction End Machine Learning in Simple Terms
Why ML in Browser?
Proprietary + Confidential No Drivers / No Installs Just Downloads
Source: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis non erat sem $ python –v $ pip install pandas $ pip install django $ pip install numpy $ pip3 install flask $ pip install tensorflow $ pip install sklearn $ python –v $ pip install pandas $ pip install django $ pip install numpy $ pip3 install flask $ pip install tensorflow $ pip install sklearn <script src="https://cdn.jsdelivr.net/npm/@tensorflo w/
[email protected]
/dist/tf.min.js"></script>
Proprietary + Confidential Highly Interactive Source: Lorem ipsum dolor sit
amet, consectetur adipiscing elit. Duis non erat sem $ step 1 – loss – 5.0681 (10 sec/step) $ step 2 – loss – 5.0681 (10 sec/step) $ step 3 – loss – 5.0681 (10 sec/step) $ step 4 – loss – 5.0681 (10 sec/step) $ step 5 – loss – 5.0681 (10 sec/step) $ step 6 – loss – 5.0681 (10 sec/step) $ step 7 – loss – 5.0681 (10 sec/step) $ step 8 – loss – 5.0681 (10 sec/step)
Proprietary + Confidential Access to Sensors Source: Lorem ipsum dolor
sit amet, consectetur adipiscing elit. Duis non erat sem GPS Microphone Camera Gyroscope
Proprietary + Confidential Can Work Offline / Data Privacy Source:
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis non erat sem
Proprietary + Confidential Web Is Every Where Source: Lorem ipsum
dolor sit amet, consectetur adipiscing elit. Duis non erat sem
History of TensorFlow.js
deeplearn.js • Release in August 2017 • GPU Accerelerated via
WebGL • Allows Inference and Training in Browser
What it Offers?
With TensorFlow.js you can • Create models directly in browser
• Import pretrained models for inference • Retrain imported models
TensorFlow.js Architecture
Proprietary + Confidential API Layers API OPs API Browser WebGL
Keras Model TensorFlow Saved Model
A Quick Example
Let’s understand Basic Terms
What is a Tensor • It is n – dimensional
Array • Each element in Tensor has same data type • Retrain imported models
const tensor = tf.tensor(0.1).variable();
What is an Epoch? • When you have huge data
• Divide it in batches for training • Feed batches one by one for training • When all batches are done, that’s the EPOCH
What are the loss functions? • You have huge data
for training • Feed data one by one for training • How to ensure model’s output is correct • A loss function maps decisions to their associated costs.
Create / Load Model in Browser
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfj
[email protected]
/dist/tf.min.js"></script>
Using TensorFlow.js with NodeJs
npm install @tensorflow/tfjs-node
A Quick Example
Save Convert Load End Use Python Model with TensorFlow.js Python
TensorFlow.js
Use Existing Model
Let’s See Some ML Examples
Text Classification • Detect text toxicity • Use prebuilt model
Object Detection • Detect Object Through Webcam
Image Classification
TensorFlow.js Limitations
Hiren Dave, AbhayTech Solutions LLP. @hjdave Thank you!
Q&A