Hi,
I tried to convert an ONNX model with TopK operators. ( https://github.com/onnx/onnx/blob/master/docs/Operators.md#TopK ) According to the docs, the TopK operator seems to be supported ( https://developer.qualcomm.com/sites/default/files/docs/snpe/supported_o... ).
But snpe-onnx-to-dlc failed to convert the onnx model. Error messages are following:
Encountered Error: 'ERROR_METHOD_NOT_FOUND_FOR_OP_TYPE: Method add_op_to_backend not found for op_type topk'Stack Trace:Traceback (most recent call last):File "/opt/snpe/bin/x86_64-linux-clang/snpe-onnx-to-dlc", line 51, in <module>backend.save(optimized_graph)File "/opt/snpe/lib/python/qti/aisw/converters/backend/ir_to_dlc.py", line 151, in saveDlcTranslations.apply_method_to_all_ops(BackendTranslationBase.ADD_OP_TO_BACKEND, graph, self)File "/opt/snpe/lib/python/qti/aisw/converters/common/converter_ir/translation.py", line 75, in apply_method_to_all_ops(method_name, node.op.type))KeyError: 'ERROR_METHOD_NOT_FOUND_FOR_OP_TYPE: Method add_op_to_backend not found for op_type topk'
Dear customer,
What's a feature your model hopes to build?
Could you please help to share the model to us as more deeply research?
BR.
Wei
Hi ryosuke.kamesawa1,
Make sure that your ONNX model is converted with opset version 1, 10, 11.
TopK supported with Opcode 10 & 11.
Regards,
Sahil Bandar