Comments (4)
Hi @phamyphen, those tests depend on some third-party IP(stb, which you can get from https://github.com/nothings/stb) that we can't distribute, and they aren't yet part of our supported product (hence no documentation for them...) but they do contain some interesting and useful example code.
After you've got the tests to compile, most of them will require hard-coded model protobufs and image files that we can't distribute. Probably the best thing for you to do would be to treat them as a starting point for your own testing.
The most useful program in that folder is 'ExecuteNetwork', which can take any model, and any input tensor, and simply prints out the output tensor. Hopefully, its internal command-line documentation will provide enough information for you to make use of it.
Anyways, to build the tests, update cmake/GlobalConfig.cmake - option(BUILD_TESTS "Build test applications" OFF)
to ON
and then run cmake with -DTHIRD_PARTY_INCLUDE_DIRS
.
e.g:
CXX=aarch64-linux-android-clang++ CC=aarch64-linux-android-clang CXX_FLAGS="-fPIE -fPIC" cmake .. -DCMAKE_SYSTEM_NAME=Android -DCMAKE_EXE_LINKER_FLAGS=-pie -DARMCOMPUTE_ROOT=$HOME/armnn-devenv/ComputeLibrary/ -DARMCOMPUTE_BUILD_DIR=$HOME/armnn-devenv/ComputeLibrary/build -DBOOST_ROOT=$HOME/armnn-devenv/boost/install/ -DARMCOMPUTENEON=1 -DARMCOMPUTECL=1 -DTHIRD_PARTY_INCLUDE_DIRS=/home/surmeh01/armnn-devenv/armnn/third-party/stb -DTF_GENERATED_SOURCES=$HOME/armnn-devenv/google/tf_pb/ -DBUILD_TF_PARSER=1 -DPROTOBUF_ROOT=$HOME/armnn-devenv/google/arm64_pb_install/
Good luck,
Surabhi
from armnn.
Is it possible to measure elapsed time on certain network ?
from armnn.
Hi @pcub,
You can have a look at armnn/tests/ExecuteNetwork/ExecuteNetwork.cpp and armnn/tests/InferenceTest.cpp.
They are tools that print out the inference timings of a given model. For more details you can for example run ExecuteNetwork -h
to get the list of usage options.
Regards,
Matteo
from armnn.
Hi @pcub,
I hope your question has been answered. Please open a new one if you need any further information.
from armnn.
Related Issues (20)
- BUG: using delegate with transformer | AttributeError: 'NoneType' object has no attribute 'c_void_p' HOT 22
- About the configuration setting of externalMemoryManagementEnabled HOT 1
- The mali gpu computation capability is only used no more than 15% when inference resnet50 with ArmNN HOT 1
- onnx deployment fail HOT 7
- Another error on another model and by now it's two out of three :( HOT 22
- Unsupported Operation "Transpose" in armNN::OnnxParser while loading the onnx model file (in the goal to run inference) HOT 8
- Build Issues -Werrors on armbian 24 HOT 1
- nvalid attempt to construct ConstTensor from non-constant TensorInfo HOT 1
- Profiler service warnings seen in ArmNN v24.02 HOT 4
- Does ExecuteNetwork support "GpuAcc" runtime ? HOT 13
- Running YOLOv5 ONNX model with onnx parser of armnn fails with unsupported operation HOT 2
- Crash when support ArmNN AIDL backend based on a shim over the NNAPI Support Library
- Crash when support ArmNN AIDL backend based on a shim over the NNAPI Support Library HOT 2
- Unitests failed HOT 3
- understanding the onnx parser HOT 2
- Whisper tflite doesn't work HOT 4
- Error compiling `OnnxMnist-Armnn.cpp` HOT 2
- How to set priority of the application running on GPU? HOT 2
- Onnx Parser: Function AddConvLayerWithDepthwiseConv with bias has logical error HOT 1
- memory alignment HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from armnn.