Coder Social home page Coder Social logo

Comments (4)

Surmeh avatar Surmeh commented on August 21, 2024

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.

baynaa7 avatar baynaa7 commented on August 21, 2024

Is it possible to measure elapsed time on certain network ?

from armnn.

MatteoArm avatar MatteoArm commented on August 21, 2024

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.

Surmeh avatar Surmeh commented on August 21, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.