grant-arm commented on pull request #8922:
URL: https://github.com/apache/tvm/pull/8922#issuecomment-945884573


   @JKANG94 Currently we compile for offloading Conv2D & Depthwise Conv to 
Ethos(TM)-U55 NPU
   ```
   # Compile model for Arm(R) Cortex(R)-M55 CPU and Ethos(TM)-U55 NPU
   tvmc compile --target="ethos-u -accelerator_config=ethos-u55-256, \
       c -runtime=c --link-params -mcpu=cortex-m55 --executor=aot 
--interface-api=c --unpacked-api=1" \
       --pass-config tir.disable_vectorize=1 
./mobilenet_v1_1.0_224_quant.tflite --output-format=mlf
   ```
   In order to compile for Arm(R) Cortex(R)-M55 CPU only, we would use:
   ```
   # Compile model for Arm(R) Cortex(R)-M55 CPU
   tvmc compile --target="c -runtime=c --link-params -mcpu=cortex-m55 
--executor=aot --interface-api=c --unpacked-api=1" \
       --pass-config tir.disable_vectorize=1 
./mobilenet_v1_1.0_224_quant.tflite --output-format=mlf
   ```
   Please note though that if you try this with the current demo and MobileNet 
v1, when you come to building the project, the linker will complain that the 
ITCM memory region has overflowed. This is due to the generated code not 
placing params in any specific section and the linker defaulting to placing 
them in ITCM. We have WIP to address this. (Please refer to the [USMP 
RFC](https://github.com/apache/tvm-rfcs/pull/9) for pinning constant buffers on 
different memories)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to