Forums - Error while running qnn-net-run using Conv2d custom operator

3 posts / 0 new
Last post
Error while running qnn-net-run using Conv2d custom operator
anant.phatak
Join Date: 20 Apr 22
Posts: 7
Posted: Wed, 2023-07-12 20:43

Getting following error while executing the qnn-net-run using custom operator for Conv2d layer.

 

1.3ms [  INFO ] Loading model shared library ([model].so)
     1.5ms [  INFO ] qnn-sample-app build version: v2.8.0.230223123141_52150-auto
     1.5ms [  INFO ] Backend        build version: v2.8.0.230223123141_52150-auto
     1.7ms [  INFO ] Initializing logging in the backend. Callback: [0x40ab00], Log Level: [3]
     1.7ms [  INFO ] Initialize Backend Returned Status = 0
     1.7ms [ ERROR ] Device property not supported or not known to backend
[ ERROR ] QnnModel::addNode() validating node sequential_conv2d_Conv2D failed.
[ ERROR ] frozen_graph.addNode(QNN_OPCONFIG_VERSION_1, "sequential_conv2d_Conv2D", "ConvOp", "Conv2D", params_sequential_conv2d_Conv2D, 4, inputs_sequential_conv2d_Conv2D, 1, outputs_sequential_conv2d_Conv2D, 1 ) expected MODEL_NO_ERROR, got MODEL_GRAPH_ERROR
     2.1ms [ ERROR ] Failed in composeGraphs()
     2.1ms [ ERROR ] Graph Prepare failure
 
QNN SDK 2.8.0 is used
 
Need clarification on from where this error is generating? Is it model issue or xml file issue or the CPP implementation of custom operator? 

 

  • Up0
  • Down0
weihuan
Join Date: 12 Apr 20
Posts: 270
Posted: Fri, 2023-07-14 03:34

Dear devleloper,

You could take reference as the UDO example code on QNN SDK.

BR.

Wei

  • Up0
  • Down0
anant.phatak
Join Date: 20 Apr 22
Posts: 7
Posted: Mon, 2023-07-17 00:30

In QNN SDK example there is no cpp implementation for the operators with Weights, There is only implementation of Relu operators in SDK.
Needed cpp implementation of operators with weights like Conv2D

  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.