Can CMSISNN backend on Cortex m7

Hi, I’m trying to run a model on cortex - m7 (STM32F746ZG). I hear tvm supports CMSIS-NN backend. and I have some questions

  1. I want to run model on my board with tvm CMSIS NN backend. but, i have no knowledge on how to use cmsisnn backend

  2. Can I use CMSIS NN intrinsics in TVM/MicroTvm?

@ashutosh-arm or @grant-arm might be able to help.

Hi @adacuba ,

I’ve pushed a new PR that adds an Arm(R) Cortex(R)-M55 CPU and CMSIS-NN demo

This demo runs on the FVP (Fixed Virtual Platform) which is a Cortex(R)-M55 emulator.

It should provide a good starting point for running TVM on a Cortex(R)-M7 and offloading to CMSIS-NN.

Take a look at the run_demo.sh script that has:

python3 -m tvm.driver.tvmc compile --target=cmsis-nn,c \
        --target-cmsis-nn-mcpu=cortex-m55 \
        --target-c-mcpu=cortex-m55 \

You will want to change that to target the M7:

python3 -m tvm.driver.tvmc compile --target=cmsis-nn,c \
    --target-cmsis-nn-mcpu=cortex-m7 \
    --target-c-mcpu=cortex-m7 \