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.

TDA4VE-Q1: [TIDL] Onnx model with gather layer has wrong result

Part Number: TDA4VE-Q1

Tool/software:

Hi, ti support.

            I designed a  onnx model with gather layer . using edgeai-tidl-tools 09020900 

            python3 onnxrt_ep.py -c     Model compilation

            python3 onnxrt_ep.py          Run_model

            TIDL result is wrong.  

            Here is my model . Can you  help me?

8883.model.zip

Best Regards

Henry

  • Hi Henry;

    Thanks for the question. 

    Could you provide the screenshot (or the log file) of your compiling and inferencing (run model).

    Regards

    Wen Li 

  • Hi, 

       OK. 

       In addition, I show my options and the intermediate files during the compilation process.
       onnx_cpu_output.bin is the result of cpuExecution
       tidl_output.bin is the result of tidlExecution

    {
    'tidl_tools_path': '/home/root/tidl_tools',
    'artifacts_folder': '/home/root/output/',
    'platform': 'J7',
    'version': '8.6',
    'tensor_bits': 8,
    'debug_level': 0,
    'max_num_subgraphs': 16,
    'deny_list': '',
    'deny_list:layer_type': '',
    'deny_list:layer_name': '',
    'model_type': '',
    'accuracy_level': 1,
    'advanced_options:calibration_frames': 1,
    'advanced_options:calibration_iterations': 10,
    'advanced_options:output_feature_16bit_names_list': '',
    'advanced_options:params_16bit_names_list': '',
    'advanced_options:mixed_precision_factor': -1,
    'advanced_options:': 0,
    'advanced_options:high_resolution_optimization': 0,
    'advanced_options:pre_batchnorm_fold': 1,
    'ti_internal_nc_flag': 1601,
    'advanced_options:activation_clipping': 1,
    'advanced_options:weight_clipping': 1,
    'advanced_options:bias_calibration': 1,
    'advanced_options:add_data_convert_ops': 3,
    'advanced_options:channel_wise_quantization': 0,
    'advanced_options:prequantized_model': 0,
    'advanced_options:inference_mode': 0,
    'advanced_options:num_cores': 1
    }

    log_and_file.zip

    Thanks

    Henry

  • Hi Henry,

    Are you unable to upgrade to the latest? I believe this issue may be fixed in our later versions. Version 10.00.07.00 is backwards compatible with SDK 9.2.

    https://github.com/TexasInstruments/edgeai-tidl-tools/blob/master/docs/version_compatibility_table.md

    You can see all the fixes here: https://github.com/TexasInstruments/edgeai-tidl-tools/releases

    Please let me know if you have any additional questions or clarifications. 

    Warm regards,

    Christina