J784S4XEVM: SDK11.2: Error while implementing TIDL Custom Op

Part Number: J784S4XEVM

Hello,

I am working with an ONNX model using TIDL and encountering an issue when trying to offload a standalone Equal operator to TIDL. 

I implemented it as Custom Op using the implementation of Custom Maxpool as reference. 

However, when compiling the model, I encounter the following error:

2026-02-11_20h27_19.png

I am using SDK 11.2 (latest) with onnx 1.15.0

Here is the implementation that I used (custom folder) and the model.

equal_model.zip  4010.custom.zip

FYI: I was working with SDK10 and my custom implementations was working.

Could you please review the custom implementation and let me know if something is missing? 

And please can you share the recommended steps for implementing a custom operator in SDK 11.2? 

Any guidance would be greatly appreciated.

Thank you.

Ghassen Souissi

  • Hello,

    Any updates please?

    FYI: I tried the same logic with a custom Op using 1 input and 1 output (Ceil) and it's working so I think the problem is with the operators which has more then 1 input.

  • Hello Ghassen,

    ok, i am also seeing the same error on the SDK11.02 release. but looking at the graph, it seems you are using equal operator, which is boolean. This is not yet supported in the current TIDL implementation. 

    Regards,

    Brijesh

  • Hello Brijesh,

    Thank you for your reply.

    About the previous thread you mentioned before we were talking about sdk10 and how to use the 2nd pointer on the inputs during the custom op execution. 

    Here we are using SDK11.2 and we cannot even compile the model. 

    For the boolean support, using these lines in TIDL_ortGetType function (treat bool as uint8) it will pass (it was working with sdk10)

    I tried with another custom op Tile but I have this error during the compilation:

    You can find here the model and the custom folder: tile_model.zip 4064.custom.zip

  • Hello Ghassen,

    Is the custom implementation correct? It looks like TIDL is not able to identify model type, and it gives error "Unsupported model type". It looks like you have removed ONNX from one of the condition in tidl_custom_import.c file. Is this required change? 

    If i just revert this change, i see segmentation fault error. Do you also see similar error? 

    Regarding Equal layer, when i used this layer, i was getting below error while compilation, but once i converted output to float, then it started compiling. i checked with the TIDL team and confirmed that boolean output is not yet supported SDK.

    [TIDL Import]  ERROR:  - Failed in function: tidl_optimizeNet -- [tidl_import_core.cpp, 3092]
    [TIDL Import]  ERROR: Network Optimization failed - Failed in function: TIDL_runtimesOptimizeNet -- [tidl_runtimes_import_common.cpp, 1544]
    [TIDL Import] [PARSER] ERROR:  - Failed in function: TIDL_computeImportFunc -- [tidl_onnxRtImport_EP.cpp, 2715]

    Regards,

    Brijesh

  • Hello Brijesh,

    Thank you for your reply.

    For Equal operator, I tried to convert the output to uint8 and float but still I have the same error. Can you tell me how made it?

    And for Tile operator, do you have any suggestion for the error because it was working with sdk10.1?

    Regards,

    Ghassen