getting started with arm nn on android , in just 5 minutes
TRANSCRIPT
![Page 1: Getting started with Arm NN on Android , in just 5 minutes](https://reader035.vdocument.in/reader035/viewer/2022071714/62d330ebf85637497433e367/html5/thumbnails/1.jpg)
© 2021 Arm
Getting started with Arm NN on Android , in just 5
minutes
![Page 2: Getting started with Arm NN on Android , in just 5 minutes](https://reader035.vdocument.in/reader035/viewer/2022071714/62d330ebf85637497433e367/html5/thumbnails/2.jpg)
© 2021 Arm
Welcome!
Tweet us: @ArmSoftwareDev -> #AIVTT
Check out our Arm Software Developers YouTube channel
Signup now for our next AI Virtual Tech Talk: developer.arm.com/techtalks
![Page 3: Getting started with Arm NN on Android , in just 5 minutes](https://reader035.vdocument.in/reader035/viewer/2022071714/62d330ebf85637497433e367/html5/thumbnails/3.jpg)
3 © 2021 Arm
Our upcoming Arm AI Tech TalksDate Title Host
November 30th Getting started with Arm NN on Android, in just 5 minutes Arm
December 14th Improve PyTorch App Performance with Android NNAPI Support Arm
January 25, 2022
Peaks, Valleys and Thresholds: The art of segmenting real-time sensor data for tinyMLclassification, regression and anomaly detection
Reality AI
February 8th, 2022
Faster time-to-production for computer vision AI on Arm powered edge devices, but just how fast is fast?
Deeplite
February 22, 2022
* New Arm ML Quarterly Research Special * Federated Learning Based on Dynamic Regularization to Debias Model Updates
Arm ML Research
Visit: developer.arm.com/techtalks
![Page 4: Getting started with Arm NN on Android , in just 5 minutes](https://reader035.vdocument.in/reader035/viewer/2022071714/62d330ebf85637497433e367/html5/thumbnails/4.jpg)
4 © 2021 Arm
Presenters
Ronan NaughtonSenior Product Manager – ML,
Arm
Jan EilersArm NN Software Engineer,
Arm
Gian Marco IodiceACL Staff Software Engineer,
Arm
![Page 5: Getting started with Arm NN on Android , in just 5 minutes](https://reader035.vdocument.in/reader035/viewer/2022071714/62d330ebf85637497433e367/html5/thumbnails/5.jpg)
5 © 2021 Arm
Introduction - Arm NN and Arm Compute LibraryLarge Install Base:
• Powering ML in billions of devices:
• Mobile
• DTV
• Automotive
• Laptop
Superior Performance:
• Full Heterogenous execution (CPU, GPU) using a single interface
• Uses advanced network optimization techniques, workload tuning and GEMM heuristics
Arm Specific Optimizations:
• Outperforms generic ML libraries due to Arm specific optimization (e.g. dot product for Armv8.2A)
• Quick adoption of new Arm technologies e.g. Armv9-A features
![Page 6: Getting started with Arm NN on Android , in just 5 minutes](https://reader035.vdocument.in/reader035/viewer/2022071714/62d330ebf85637497433e367/html5/thumbnails/6.jpg)
6 © 2021 Arm
Heterogeneous ML Software and Tools Platform
Dynamic Workload Compilers & Drivers
Applications
High Level Frameworks(e.g. TensorFlow Lite, PyTorch, Android NNAPI)
Tools
NPUEthos-N
GPUCPUMaliCortex-A Neoverse
![Page 7: Getting started with Arm NN on Android , in just 5 minutes](https://reader035.vdocument.in/reader035/viewer/2022071714/62d330ebf85637497433e367/html5/thumbnails/7.jpg)
7 © 2021 Arm
Arm NN on Android – using Android NNAPI
• Pre-installed by vendor on many Android devices
• Support for TensorFlow Lite and PyTorch networks
• Full CTS / VTS compliance
• 72 Operators accelerated with Arm NN backends
• NNAPI model caching supported
• Arm NN HAL driver:• android.hardware.neuralnetworks HAL interfaces (1.0 – 1.3)
TensorFlow Lite, PyTorch Mobile
Android NNAPI
Arm NN
ACL
Cortex-ACPU
MaliGPU
Android App
![Page 8: Getting started with Arm NN on Android , in just 5 minutes](https://reader035.vdocument.in/reader035/viewer/2022071714/62d330ebf85637497433e367/html5/thumbnails/8.jpg)
8 © 2021 Arm
Arm NN on Android - using TensorFlow Lite Delegate
• All TensorFlow Lite Networks can be supported:• Key ops (70) – accelerated• Unsupported ops – fall back to TensorFlow Lite implementation
• Quick setup time with Android Library (AAR)
• Configurable Optimizations • Backend selection • fast math • fp32->fp16 • num-of-threads• memory-import
• Flexible build options (Cmake, Bazel)
TensorFlow Lite
Arm NN TFLiteDelegate
Arm NN
ACL
Cortex-ACPU
MaliGPU
Android App
![Page 9: Getting started with Arm NN on Android , in just 5 minutes](https://reader035.vdocument.in/reader035/viewer/2022071714/62d330ebf85637497433e367/html5/thumbnails/9.jpg)
9 © 2021 Arm
Android Sample applicationshttps://www.tensorflow.org/lite/examples
Image Segmentation Pose Estimation
![Page 10: Getting started with Arm NN on Android , in just 5 minutes](https://reader035.vdocument.in/reader035/viewer/2022071714/62d330ebf85637497433e367/html5/thumbnails/10.jpg)
10 © 2021 Arm
Android Demo – Image SegmentationUsing TensorFlow Lite GPU Delegate
Android Application
TFLite Interpreter
TFLite GPU Delegate
Mali GPU
![Page 11: Getting started with Arm NN on Android , in just 5 minutes](https://reader035.vdocument.in/reader035/viewer/2022071714/62d330ebf85637497433e367/html5/thumbnails/11.jpg)
11 © 2021 Arm
Android Demo – Image SegmentationUsing Arm NN and Arm Compute Library
Arm NN TFLiteDelegate
Arm NN
ACL
Android Application
TFLite Interpreter
Arm AAR file
Mali GPU
TFLite GPU
Delegate
![Page 12: Getting started with Arm NN on Android , in just 5 minutes](https://reader035.vdocument.in/reader035/viewer/2022071714/62d330ebf85637497433e367/html5/thumbnails/12.jpg)
12 © 2021 Arm
Android Demo – Pose EstimationUsing Arm NN and Arm Compute Library
Arm NN TFLiteDelegate
Arm NN
ACL
Android Application
TFLite Interpreter
Mali GPU
Arm AAR file
TFLite GPU
Delegate
![Page 13: Getting started with Arm NN on Android , in just 5 minutes](https://reader035.vdocument.in/reader035/viewer/2022071714/62d330ebf85637497433e367/html5/thumbnails/13.jpg)
13 © 2021 Arm
Performance Summary
Accelerator Approximate Execution time
TFLite GPU Delegate 37ms
Arm NN Delegate 11ms
Accelerator Average FPS achieved
TFLite GPU Delegate 17
Arm NN Delegate 24
Image Segmentation Pose Estimation
![Page 14: Getting started with Arm NN on Android , in just 5 minutes](https://reader035.vdocument.in/reader035/viewer/2022071714/62d330ebf85637497433e367/html5/thumbnails/14.jpg)
14 © 2021 Arm
What’s next??
• Continuous performance improvement on CPU & GPU
• Support for new Arm technologies
• Addition to Maven Central
• Sync Fence support
• NNAPI Support Library interface
• AHardwareBuf support
• NNAPI FL6 features
![Page 15: Getting started with Arm NN on Android , in just 5 minutes](https://reader035.vdocument.in/reader035/viewer/2022071714/62d330ebf85637497433e367/html5/thumbnails/15.jpg)
Thank YouDankeMerci谢谢
ありがとうGracias
Kiitos감사합니다
धन्यवाद
شكرًا
תודה
AI Virtual Tech Talks Series
![Page 16: Getting started with Arm NN on Android , in just 5 minutes](https://reader035.vdocument.in/reader035/viewer/2022071714/62d330ebf85637497433e367/html5/thumbnails/16.jpg)
The Arm trademarks featured in this presentation are registered trademarks or trademarks of Arm Limited (or its subsidiaries) in
the US and/or elsewhere. All rights reserved. All other marks featured may be trademarks of their respective owners.
www.arm.com/company/policies/trademarks
© 2021 Arm
![Page 17: Getting started with Arm NN on Android , in just 5 minutes](https://reader035.vdocument.in/reader035/viewer/2022071714/62d330ebf85637497433e367/html5/thumbnails/17.jpg)
© 2021 Arm
Thank you!
Tweet us: @ArmSoftwareDev -> #AIVTT
Check out our Arm Software Developers YouTube channel
Signup now for our next AI Virtual Tech Talk: developer.arm.com/techtalks