ݺߣ

ݺߣShare a Scribd company logo
Implementing Machine Learning
At
The IOT Edge
Steve Mylroie
Roietronics
Machine Learning
Supervised
Linear Regression
Decision Tree
Unsupervised
Deep Neural Networks
Liner Neural Neural Networks
Convolution Neural Networks
Recurrent Neural Networks
SRRN - Simple Recurrent Neural Networks
LSTM C Long Short Term Memory
GRU - Gated Recurrent Unit
GRU NEURAL NETWORK CELL
Sigmoid Function
? A sigmoid function is a
mathematical function
having a characteristic "S"-
shaped curve or sigmoid
curve. Often, sigmoid
function refers to the special
case of the logistic function
shown in the first figure and
defined by the formula
S(x)=1/(1+e??)=e?/(e?+1).
Training
?Datasets
?Tools
? Azure Notebooks
? Jupyter Notebooks
? Python 3.6
? Kares
? TensorFlow
?Demo
Data Randomization
No Offsets Random 15 Minute Offset per
24 Hour Cycle
Implementation
? Tools
? MBED OS5
? CMSIS-NN Package - GRU Example
? HDF5 Extractor
? Float to Q format Converter
? VS Code
? GNU Tools ARM Embedded
? Issues
? GRU Example Problems
? Weight and Bias Value Transfer
? Q format
? Code
Numeric Formats
Name bits Value bits Exponent bits Min Value Max Value
Float Half 16 10 5 -1*2**15 1*2**15
Float 32 23 8 -1*2**127 1*2**127
Double 64 52 11 -1*2**1023 1*2**1023
Q0.15 (Q15) 16 15 0 -1+2**-15 1-2**-15
Q0.7 (Q7) 8 7 0 -1+-2**-7 1-2**-7
Bit 15 14 13 12
 0
Value Sign 1/2 1/4 1/8  1/(2^15)
Q15 Format
Matrix ordering with Optimization
? Weights are in q7_t and Activations are in q15_t
? Limitation: x4 version requires weight reordering to work
? Here we use only one pointer to read 4 rows in the weight matrix. So if the original q7_t matrix
looks like this:
? | a11 | a12 | a13 | a14 | a15 | a16 | a17 |
? | a21 | a22 | a23 | a24 | a25 | a26 | a27 |
? | a31 | a32 | a33 | a34 | a35 | a36 | a37 |
? | a41 | a42 | a43 | a44 | a45 | a46 | a47 |
? | a51 | a52 | a53 | a54 | a55 | a56 | a57 |
? | a61 | a62 | a63 | a64 | a65 | a66 | a67 |
? We operates on multiple-of-4 rows, so the first four rows becomes
? | a11 | a21 | a12 | a22 | a31 | a41 | a32 | a42 |
? | a13 | a23 | a14 | a24 | a33 | a43 | a34 | a44 |
? | a15 | a25 | a16 | a26 | a35 | a45 | a36 | a46 |
Matrix Reordering with Optimzation (Cont)
? The column left over will be in-order. which is: | a17 | a27 | a37 | a47 |
? For the left-over rows, we do 1x1 computation, so the data remains as its
original order.
? So the stored weight matrix looks like this:
? | a11 | a21 | a12 | a22 | a31 | a41 |
? | a32 | a42 | a13 | a23 | a14 | a24 |
? | a33 | a43 | a34 | a44 | a15 | a25 |
? | a16 | a26 | a35 | a45 | a36 | a46 |
? | a17 | a27 | a37 | a47 | a51 | a52 |
? | a53 | a54 | a55 | a56 | a57 | a61 |
? | a62 | a63 | a64 | a65 | a66 | a67 |
CMSIS-NN Software Library
? https://arm-
software.github.io/CMSIS_5/NN/html/group__GRUExample.html
? https://arm-
software.github.io/CMSIS_5/DSP/html/group__float__to__x.html
? https://github.com/ARM-software/CMSIS_5
? https://os.mbed.com/blog/entry/uTensor-and-Tensor-Flow-
Announcement/ May 2019
References 1
? Under Standing LSTMetwork
http://colah.github.io/posts/2015-08-Understanding-LSTMs/
? cmsis-nn GRU example
https://arm-software.github.io/CMSIS_5/NN/html/group__GRUExample.html
? Azure Notebooks
https://notebooks.azure.com/
? Jupyter Notebooks
https://jupyter.org/
? Keras Documentation
https://keras.io/
? Keras Model Guide
https://keras.io/getting-started/sequential-model-guide/
? Keras Recurrent Layers
https://keras.io/layers/recurrent/
(Scroll down for GRU cell entry)
? TensorFlow
https://www.tensorflow.org/
? Python 3.6 Documentation
https://devdocs.io/python~3.6/
References 2
? Heretical Data File 5 (HDF5)
https://portal.hdfgroup.org/display/support/Documentation
? Floating Point to Q Format Converter
https://www.mathworks.com/matlabcentral/fileexchange/61669-decimal-to-fixed-point-q-format-converter
? Mbed OS
https://os.mbed.com/
? CMSIS NN Package
https://arm-software.github.io/CMSIS_5/NN/html/index.html
? CMSIS Packages Down Load
https://github.com/ARM-software/CMSIS_5
? Conversion to CMSIS-NN
https://developer.arm.com/solutions/machine-learning-on-arm/developer-material/how-to-
guides/converting-a-neural-network-for-arm-cortex-m-with-cmsis-nn/single-page
? VSCode
https://code.visualstudio.com/
? Sample Data Sets
https://www.deepsig.io/datasets
? SSD Notebook
https://notebooks.azure.com/smylroie/projects/ssd-demo

More Related Content

Recently uploaded (20)

EASEUS Partition Master Crack with License Code [Latest]
EASEUS Partition Master Crack with License Code [Latest]EASEUS Partition Master Crack with License Code [Latest]
EASEUS Partition Master Crack with License Code [Latest]
bhagasufyan
?
Cybersecurity & Innovation: The Future of Mobile App Development
Cybersecurity & Innovation: The Future of Mobile App DevelopmentCybersecurity & Innovation: The Future of Mobile App Development
Cybersecurity & Innovation: The Future of Mobile App Development
iProgrammer Solutions Private Limited
?
Advance Website Helpdesk Customer Support Ticket Management Odoo
Advance Website Helpdesk Customer Support Ticket Management OdooAdvance Website Helpdesk Customer Support Ticket Management Odoo
Advance Website Helpdesk Customer Support Ticket Management Odoo
Aagam infotech
?
ChatGPT and DeepSeek: Which AI Tool Delivers Better User Experience?
ChatGPT and DeepSeek: Which AI Tool Delivers Better User Experience?ChatGPT and DeepSeek: Which AI Tool Delivers Better User Experience?
ChatGPT and DeepSeek: Which AI Tool Delivers Better User Experience?
Ava Isley
?
Data Storytelling for Portfolio Leaders - Webinar
Data Storytelling for Portfolio Leaders - WebinarData Storytelling for Portfolio Leaders - Webinar
Data Storytelling for Portfolio Leaders - Webinar
OnePlan Solutions
?
Next-Gen Procurement: Leveraging AI for Smarter Sourcing & Cost Optimization
Next-Gen Procurement: Leveraging AI for Smarter Sourcing & Cost OptimizationNext-Gen Procurement: Leveraging AI for Smarter Sourcing & Cost Optimization
Next-Gen Procurement: Leveraging AI for Smarter Sourcing & Cost Optimization
asmith539880
?
Account Cash Flow Statement Report Generate in odoo
Account Cash Flow Statement Report Generate in odooAccount Cash Flow Statement Report Generate in odoo
Account Cash Flow Statement Report Generate in odoo
AxisTechnolabs
?
LLM Security - Smart to protect, but too smart to be protected
LLM Security - Smart to protect, but too smart to be protectedLLM Security - Smart to protect, but too smart to be protected
LLM Security - Smart to protect, but too smart to be protected
Ivo Andreev
?
Projects Panama, Valhalla, and Babylon: Java is the New Python v0.9
Projects Panama, Valhalla, and Babylon: Java is the New Python v0.9Projects Panama, Valhalla, and Babylon: Java is the New Python v0.9
Projects Panama, Valhalla, and Babylon: Java is the New Python v0.9
Yann-Ga?l Guhneuc
?
A Brief Introduction About Raman Bhaumik
A Brief Introduction About Raman BhaumikA Brief Introduction About Raman Bhaumik
A Brief Introduction About Raman Bhaumik
Raman Bhaumik
?
AutoDesk Revit Crack | Revit Update 2025 free download
AutoDesk Revit Crack | Revit Update 2025 free downloadAutoDesk Revit Crack | Revit Update 2025 free download
AutoDesk Revit Crack | Revit Update 2025 free download
anamaslam971
?
How John started to like TDD (instead of hating it) - TED talk
How John started to like TDD (instead of hating it) - TED talkHow John started to like TDD (instead of hating it) - TED talk
How John started to like TDD (instead of hating it) - TED talk
Nacho Cougil
?
DevOpsDays LA - Platform Engineers are Product Managers.pdf
DevOpsDays LA - Platform Engineers are Product Managers.pdfDevOpsDays LA - Platform Engineers are Product Managers.pdf
DevOpsDays LA - Platform Engineers are Product Managers.pdf
Justin Reock
?
Wondershare Filmora 14.3.2 Crack + License Key Free Download
Wondershare Filmora 14.3.2 Crack + License Key Free DownloadWondershare Filmora 14.3.2 Crack + License Key Free Download
Wondershare Filmora 14.3.2 Crack + License Key Free Download
arshadkhokher01
?
Why Hire Python Developers? Key Benefits for Your Business
Why Hire Python Developers? Key Benefits for Your BusinessWhy Hire Python Developers? Key Benefits for Your Business
Why Hire Python Developers? Key Benefits for Your Business
Mypcot Infotech
?
SketchUp Pro Crack [2025]-Free Download?
SketchUp Pro Crack [2025]-Free Download?SketchUp Pro Crack [2025]-Free Download?
SketchUp Pro Crack [2025]-Free Download?
kiran10101khan
?
AVG Antivirus Crack With Free version Download 2025 [Latest]
AVG Antivirus Crack With Free version Download 2025 [Latest]AVG Antivirus Crack With Free version Download 2025 [Latest]
AVG Antivirus Crack With Free version Download 2025 [Latest]
haroonsaeed605
?
Lecture-11-AutomatedTesting-software.pptx
Lecture-11-AutomatedTesting-software.pptxLecture-11-AutomatedTesting-software.pptx
Lecture-11-AutomatedTesting-software.pptx
ssuser39f59e
?
CorelDRAW Graphics Suite 2025 Crack free download
CorelDRAW Graphics Suite 2025 Crack free downloadCorelDRAW Graphics Suite 2025 Crack free download
CorelDRAW Graphics Suite 2025 Crack free download
fahadmustafa4202
?
AnyDesk Pro 3.7.0 Crack License Key Free Download 2025 [Latest]
AnyDesk Pro 3.7.0 Crack License Key Free Download 2025 [Latest]AnyDesk Pro 3.7.0 Crack License Key Free Download 2025 [Latest]
AnyDesk Pro 3.7.0 Crack License Key Free Download 2025 [Latest]
haroonsaeed605
?
EASEUS Partition Master Crack with License Code [Latest]
EASEUS Partition Master Crack with License Code [Latest]EASEUS Partition Master Crack with License Code [Latest]
EASEUS Partition Master Crack with License Code [Latest]
bhagasufyan
?
Advance Website Helpdesk Customer Support Ticket Management Odoo
Advance Website Helpdesk Customer Support Ticket Management OdooAdvance Website Helpdesk Customer Support Ticket Management Odoo
Advance Website Helpdesk Customer Support Ticket Management Odoo
Aagam infotech
?
ChatGPT and DeepSeek: Which AI Tool Delivers Better User Experience?
ChatGPT and DeepSeek: Which AI Tool Delivers Better User Experience?ChatGPT and DeepSeek: Which AI Tool Delivers Better User Experience?
ChatGPT and DeepSeek: Which AI Tool Delivers Better User Experience?
Ava Isley
?
Data Storytelling for Portfolio Leaders - Webinar
Data Storytelling for Portfolio Leaders - WebinarData Storytelling for Portfolio Leaders - Webinar
Data Storytelling for Portfolio Leaders - Webinar
OnePlan Solutions
?
Next-Gen Procurement: Leveraging AI for Smarter Sourcing & Cost Optimization
Next-Gen Procurement: Leveraging AI for Smarter Sourcing & Cost OptimizationNext-Gen Procurement: Leveraging AI for Smarter Sourcing & Cost Optimization
Next-Gen Procurement: Leveraging AI for Smarter Sourcing & Cost Optimization
asmith539880
?
Account Cash Flow Statement Report Generate in odoo
Account Cash Flow Statement Report Generate in odooAccount Cash Flow Statement Report Generate in odoo
Account Cash Flow Statement Report Generate in odoo
AxisTechnolabs
?
LLM Security - Smart to protect, but too smart to be protected
LLM Security - Smart to protect, but too smart to be protectedLLM Security - Smart to protect, but too smart to be protected
LLM Security - Smart to protect, but too smart to be protected
Ivo Andreev
?
Projects Panama, Valhalla, and Babylon: Java is the New Python v0.9
Projects Panama, Valhalla, and Babylon: Java is the New Python v0.9Projects Panama, Valhalla, and Babylon: Java is the New Python v0.9
Projects Panama, Valhalla, and Babylon: Java is the New Python v0.9
Yann-Ga?l Guhneuc
?
A Brief Introduction About Raman Bhaumik
A Brief Introduction About Raman BhaumikA Brief Introduction About Raman Bhaumik
A Brief Introduction About Raman Bhaumik
Raman Bhaumik
?
AutoDesk Revit Crack | Revit Update 2025 free download
AutoDesk Revit Crack | Revit Update 2025 free downloadAutoDesk Revit Crack | Revit Update 2025 free download
AutoDesk Revit Crack | Revit Update 2025 free download
anamaslam971
?
How John started to like TDD (instead of hating it) - TED talk
How John started to like TDD (instead of hating it) - TED talkHow John started to like TDD (instead of hating it) - TED talk
How John started to like TDD (instead of hating it) - TED talk
Nacho Cougil
?
DevOpsDays LA - Platform Engineers are Product Managers.pdf
DevOpsDays LA - Platform Engineers are Product Managers.pdfDevOpsDays LA - Platform Engineers are Product Managers.pdf
DevOpsDays LA - Platform Engineers are Product Managers.pdf
Justin Reock
?
Wondershare Filmora 14.3.2 Crack + License Key Free Download
Wondershare Filmora 14.3.2 Crack + License Key Free DownloadWondershare Filmora 14.3.2 Crack + License Key Free Download
Wondershare Filmora 14.3.2 Crack + License Key Free Download
arshadkhokher01
?
Why Hire Python Developers? Key Benefits for Your Business
Why Hire Python Developers? Key Benefits for Your BusinessWhy Hire Python Developers? Key Benefits for Your Business
Why Hire Python Developers? Key Benefits for Your Business
Mypcot Infotech
?
SketchUp Pro Crack [2025]-Free Download?
SketchUp Pro Crack [2025]-Free Download?SketchUp Pro Crack [2025]-Free Download?
SketchUp Pro Crack [2025]-Free Download?
kiran10101khan
?
AVG Antivirus Crack With Free version Download 2025 [Latest]
AVG Antivirus Crack With Free version Download 2025 [Latest]AVG Antivirus Crack With Free version Download 2025 [Latest]
AVG Antivirus Crack With Free version Download 2025 [Latest]
haroonsaeed605
?
Lecture-11-AutomatedTesting-software.pptx
Lecture-11-AutomatedTesting-software.pptxLecture-11-AutomatedTesting-software.pptx
Lecture-11-AutomatedTesting-software.pptx
ssuser39f59e
?
CorelDRAW Graphics Suite 2025 Crack free download
CorelDRAW Graphics Suite 2025 Crack free downloadCorelDRAW Graphics Suite 2025 Crack free download
CorelDRAW Graphics Suite 2025 Crack free download
fahadmustafa4202
?
AnyDesk Pro 3.7.0 Crack License Key Free Download 2025 [Latest]
AnyDesk Pro 3.7.0 Crack License Key Free Download 2025 [Latest]AnyDesk Pro 3.7.0 Crack License Key Free Download 2025 [Latest]
AnyDesk Pro 3.7.0 Crack License Key Free Download 2025 [Latest]
haroonsaeed605
?

Featured (20)

2024 Trend Updates: What Really Works In SEO & Content Marketing
2024 Trend Updates: What Really Works In SEO & Content Marketing2024 Trend Updates: What Really Works In SEO & Content Marketing
2024 Trend Updates: What Really Works In SEO & Content Marketing
Search Engine Journal
?
Storytelling For The Web: Integrate Storytelling in your Design Process
Storytelling For The Web: Integrate Storytelling in your Design ProcessStorytelling For The Web: Integrate Storytelling in your Design Process
Storytelling For The Web: Integrate Storytelling in your Design Process
Chiara Aliotta
?
Artificial Intelligence, Data and Competition C SCHREPEL C June 2024 OECD dis...
Artificial Intelligence, Data and Competition C SCHREPEL C June 2024 OECD dis...Artificial Intelligence, Data and Competition C SCHREPEL C June 2024 OECD dis...
Artificial Intelligence, Data and Competition C SCHREPEL C June 2024 OECD dis...
OECD Directorate for Financial and Enterprise Affairs
?
How to Leverage AI to Boost Employee Wellness - Lydia Di Francesco - SocialHR...
How to Leverage AI to Boost Employee Wellness - Lydia Di Francesco - SocialHR...How to Leverage AI to Boost Employee Wellness - Lydia Di Francesco - SocialHR...
How to Leverage AI to Boost Employee Wellness - Lydia Di Francesco - SocialHR...
SocialHRCamp
?
2024 State of Marketing Report C by Hubspot
2024 State of Marketing Report C by Hubspot2024 State of Marketing Report C by Hubspot
2024 State of Marketing Report C by Hubspot
Marius Sescu
?
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
?
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
?
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
?
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
?
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
?
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
?
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
?
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
?
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
?
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
?
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
?
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
?
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
?
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
?
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
?
2024 Trend Updates: What Really Works In SEO & Content Marketing
2024 Trend Updates: What Really Works In SEO & Content Marketing2024 Trend Updates: What Really Works In SEO & Content Marketing
2024 Trend Updates: What Really Works In SEO & Content Marketing
Search Engine Journal
?
Storytelling For The Web: Integrate Storytelling in your Design Process
Storytelling For The Web: Integrate Storytelling in your Design ProcessStorytelling For The Web: Integrate Storytelling in your Design Process
Storytelling For The Web: Integrate Storytelling in your Design Process
Chiara Aliotta
?
How to Leverage AI to Boost Employee Wellness - Lydia Di Francesco - SocialHR...
How to Leverage AI to Boost Employee Wellness - Lydia Di Francesco - SocialHR...How to Leverage AI to Boost Employee Wellness - Lydia Di Francesco - SocialHR...
How to Leverage AI to Boost Employee Wellness - Lydia Di Francesco - SocialHR...
SocialHRCamp
?
2024 State of Marketing Report C by Hubspot
2024 State of Marketing Report C by Hubspot2024 State of Marketing Report C by Hubspot
2024 State of Marketing Report C by Hubspot
Marius Sescu
?
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
?
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
?
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
?
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
?
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
?
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
?
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
?
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
?
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
?
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
?
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
?
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
?

Implementing machine learnng at the iot edge

  • 1. Implementing Machine Learning At The IOT Edge Steve Mylroie Roietronics
  • 2. Machine Learning Supervised Linear Regression Decision Tree Unsupervised Deep Neural Networks Liner Neural Neural Networks Convolution Neural Networks Recurrent Neural Networks SRRN - Simple Recurrent Neural Networks LSTM C Long Short Term Memory GRU - Gated Recurrent Unit
  • 4. Sigmoid Function ? A sigmoid function is a mathematical function having a characteristic "S"- shaped curve or sigmoid curve. Often, sigmoid function refers to the special case of the logistic function shown in the first figure and defined by the formula S(x)=1/(1+e??)=e?/(e?+1).
  • 5. Training ?Datasets ?Tools ? Azure Notebooks ? Jupyter Notebooks ? Python 3.6 ? Kares ? TensorFlow ?Demo
  • 6. Data Randomization No Offsets Random 15 Minute Offset per 24 Hour Cycle
  • 7. Implementation ? Tools ? MBED OS5 ? CMSIS-NN Package - GRU Example ? HDF5 Extractor ? Float to Q format Converter ? VS Code ? GNU Tools ARM Embedded ? Issues ? GRU Example Problems ? Weight and Bias Value Transfer ? Q format ? Code
  • 8. Numeric Formats Name bits Value bits Exponent bits Min Value Max Value Float Half 16 10 5 -1*2**15 1*2**15 Float 32 23 8 -1*2**127 1*2**127 Double 64 52 11 -1*2**1023 1*2**1023 Q0.15 (Q15) 16 15 0 -1+2**-15 1-2**-15 Q0.7 (Q7) 8 7 0 -1+-2**-7 1-2**-7 Bit 15 14 13 12 0 Value Sign 1/2 1/4 1/8 1/(2^15) Q15 Format
  • 9. Matrix ordering with Optimization ? Weights are in q7_t and Activations are in q15_t ? Limitation: x4 version requires weight reordering to work ? Here we use only one pointer to read 4 rows in the weight matrix. So if the original q7_t matrix looks like this: ? | a11 | a12 | a13 | a14 | a15 | a16 | a17 | ? | a21 | a22 | a23 | a24 | a25 | a26 | a27 | ? | a31 | a32 | a33 | a34 | a35 | a36 | a37 | ? | a41 | a42 | a43 | a44 | a45 | a46 | a47 | ? | a51 | a52 | a53 | a54 | a55 | a56 | a57 | ? | a61 | a62 | a63 | a64 | a65 | a66 | a67 | ? We operates on multiple-of-4 rows, so the first four rows becomes ? | a11 | a21 | a12 | a22 | a31 | a41 | a32 | a42 | ? | a13 | a23 | a14 | a24 | a33 | a43 | a34 | a44 | ? | a15 | a25 | a16 | a26 | a35 | a45 | a36 | a46 |
  • 10. Matrix Reordering with Optimzation (Cont) ? The column left over will be in-order. which is: | a17 | a27 | a37 | a47 | ? For the left-over rows, we do 1x1 computation, so the data remains as its original order. ? So the stored weight matrix looks like this: ? | a11 | a21 | a12 | a22 | a31 | a41 | ? | a32 | a42 | a13 | a23 | a14 | a24 | ? | a33 | a43 | a34 | a44 | a15 | a25 | ? | a16 | a26 | a35 | a45 | a36 | a46 | ? | a17 | a27 | a37 | a47 | a51 | a52 | ? | a53 | a54 | a55 | a56 | a57 | a61 | ? | a62 | a63 | a64 | a65 | a66 | a67 |
  • 11. CMSIS-NN Software Library ? https://arm- software.github.io/CMSIS_5/NN/html/group__GRUExample.html ? https://arm- software.github.io/CMSIS_5/DSP/html/group__float__to__x.html ? https://github.com/ARM-software/CMSIS_5 ? https://os.mbed.com/blog/entry/uTensor-and-Tensor-Flow- Announcement/ May 2019
  • 12. References 1 ? Under Standing LSTMetwork http://colah.github.io/posts/2015-08-Understanding-LSTMs/ ? cmsis-nn GRU example https://arm-software.github.io/CMSIS_5/NN/html/group__GRUExample.html ? Azure Notebooks https://notebooks.azure.com/ ? Jupyter Notebooks https://jupyter.org/ ? Keras Documentation https://keras.io/ ? Keras Model Guide https://keras.io/getting-started/sequential-model-guide/ ? Keras Recurrent Layers https://keras.io/layers/recurrent/ (Scroll down for GRU cell entry) ? TensorFlow https://www.tensorflow.org/ ? Python 3.6 Documentation https://devdocs.io/python~3.6/
  • 13. References 2 ? Heretical Data File 5 (HDF5) https://portal.hdfgroup.org/display/support/Documentation ? Floating Point to Q Format Converter https://www.mathworks.com/matlabcentral/fileexchange/61669-decimal-to-fixed-point-q-format-converter ? Mbed OS https://os.mbed.com/ ? CMSIS NN Package https://arm-software.github.io/CMSIS_5/NN/html/index.html ? CMSIS Packages Down Load https://github.com/ARM-software/CMSIS_5 ? Conversion to CMSIS-NN https://developer.arm.com/solutions/machine-learning-on-arm/developer-material/how-to- guides/converting-a-neural-network-for-arm-cortex-m-with-cmsis-nn/single-page ? VSCode https://code.visualstudio.com/ ? Sample Data Sets https://www.deepsig.io/datasets ? SSD Notebook https://notebooks.azure.com/smylroie/projects/ssd-demo