This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TDA4VM: TVM/Neo-AI-DLR::Inference steps

Part Number: TDA4VM

Dear TI Team 

Is it possible to share the example shows -how to use "tidl_denylist" option in TIDLCompiler function of test_tidl_j7.py module. 

Will there be any difference in the generated deliverable/artifacts when SW is compiled with and without configuration of tidl_denylist. if yes, which module in generated artifiacts depicts the changes ?

Kindly share the detail steps/procedure to infer the TVM compiled model on target(j7-EVM) using TVM inference approch 

Note

Versions used :-

SDK: ti-processor-sdk-rtos-j721e-evm-07_01_00_11

TVM version: REL.TIDL.J7.01.03.00.11

OS : Ubuntu 18.04

Thanks :-) 

  • You can use tvm_dlr tvm_compilation_tflite_example.py as an example.  Run the compilation, open the model artifacts, tempDir/relay_graph.import.txt and see which layers are offloaded to TIDL.  For this tflite inceptionnet v3 example, all layers are offloaded to TIDL.

    Say, for example, you want the last layer, "nn.softmax", not offloaded to TIDL, you can use the deny_list option in TIDLCompiler.  Modify tvm_compilation_tflite_example.py, add the following line to TIDLCompiler arguments:

    deny_list="nn.softmax",

    Run the compilation again, and see the difference in tempDir/relay_graph.import.txt.

    deny_list is mainly provided as a debugging option, it may not bring value in real application.

    -Yuan

  • Dear Yuan , 

    Thanks for the information.