Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Collapse
Brand Logo

ModalAI Forum

  1. ModalAI Support Forum
  2. VOXL Dev Drones
  3. Qualcomm Flight RB5 5G Drone
  4. Building Tensorflow Lite From Source w/ NNAPI

Building Tensorflow Lite From Source w/ NNAPI

Scheduled Pinned Locked Moved Qualcomm Flight RB5 5G Drone
androidnnapisnpetensorflow
7 Posts 4 Posters 3.1k Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mrawding
    wrote on last edited by mrawding
    #1

    Hello,

    I am attempting to build Tensorflow Lite v2.6 on the RB5 with NNAPI enabled. After following the tensorflow tutorial I am unable to build with NNAPI enabled even with the correct CMAKE Flags to enable the build.

    The problem is a missing pre-processor definition of __ANDROID__=1.

    After defining that, it seemed to cause some issues because of missing andoir includes such as.

    sys/system_properties.h (copied cutils/sys/system_properties to resolve.
    and
    android/api-level.h

    On the Qualcomm Website here:

    https://developer.qualcomm.com/qualcomm-qcs610-development-kit/learning-resources/neural-network-api

    It says I should be able to use NNAPI. I understand that the gstreamer plugin is an option, but I would like to interface tensorflow lite directly. Is there an SDK that will help me build this? I've looked through most of them and they don't seem to have the files that I would need most likely.

    Has anyone made any progress with this or could point me in a good direction.

    1 Reply Last reply
    0
    • modaltbM Offline
      modaltbM Offline
      modaltb
      ModalAI Team
      wrote on last edited by
      #2

      Hi @mrawding ,

      What hardware are you using???? 😉

      We are very light with RB5 Flight docs at this point, I have headers from our system image build that I can try to share if that would help, but we've not gone too far yet in this area.

      We have our system image in an emulator as well, but still pretty alpha level: https://gitlab.com/voxl-public/rb5-flight/rb5-flight-emulator

      1 Reply Last reply
      0
      • M Offline
        M Offline
        mrawding
        wrote on last edited by
        #3

        Hi Travis,

        I am using the EVT board at the moment. The problem is that is seems to be missing the Android NDK on board. We need these toolchain libraries onboard to compile tensorflowlite with NNAPI and hexagon acceleration delegates. The only thing that might work as of now is gpu delegation, but I haven't tested it at runtime just yet.

        How was this done on the voxl? I tried downloading the hexagon sdk, but I am unsure how to compile and install the ndk on the RB5.

        1 Reply Last reply
        0
        • ? Offline
          ? Offline
          A Former User
          wrote on last edited by
          #4

          Hey @mrawding,

          For tesorflowlite on VOXL we currently use the voxl-tflite-server which uses the GPU delegate. This is a custom tflite build we made.

          S 1 Reply Last reply
          0
          • ? A Former User

            Hey @mrawding,

            For tesorflowlite on VOXL we currently use the voxl-tflite-server which uses the GPU delegate. This is a custom tflite build we made.

            S Offline
            S Offline
            snogar
            wrote on last edited by
            #5

            @modalab Just bumping this thread. It would be very helpful to build NNAPI on both the voxl and RB5 as this would enable the ability to run both PyTorch and Tensorflow Lite, greatly enhancing the ease of running machine learning models on the platform. From what I can gather, NNAPI is needed to utilize the neural processor on the RB5.

            1 Reply Last reply
            0
            • modaltbM Offline
              modaltbM Offline
              modaltb
              ModalAI Team
              wrote on last edited by
              #6

              Hi @snogar ,

              Roger! The hood is open right now, we'll be digging in here in the next week(s) and will update you.

              S 1 Reply Last reply
              0
              • modaltbM modaltb

                Hi @snogar ,

                Roger! The hood is open right now, we'll be digging in here in the next week(s) and will update you.

                S Offline
                S Offline
                snogar
                wrote on last edited by
                #7

                @modaltb Excellent! Happy to help if you need it. Don't hesitate to reach out to myself or @mrawding

                1 Reply Last reply
                0

                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                With your input, this post could be even better 💗

                Register Login
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                ModalAI
                Categories Recent Tags ModalAI.com Docs
                © 2026 ModalAI® · Accelerating autonomy for smaller, smarter, safer drones · Powered by NodeBB
                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups