Forums - Error when converting ONNX to dlc

4 posts / 0 new
Last post
Error when converting ONNX to dlc
microzift
Join Date: 7 May 18
Posts: 4
Posted: Mon, 2018-05-07 13:22

Hi,

I'm  trying to convert my onnx file of MobileNet V2 created from Pytorch. I can the following warning and error:

2018-05-07 23:14:08,656 - 229 - WARNING - SNPE does not support broadcast Add operations, will attempt to interpret as bias-add operation
2018-05-07 23:14:08,656 - 221 - ERROR - Node : 'Expected a static initializer for value 298'
 
I'm not sure how to approach this. Highly appreciate your help.
 
Thanks,
  • Up0
  • Down0
yssongest
Join Date: 27 Mar 18
Posts: 4
Posted: Tue, 2018-05-08 00:48

Hi,  I meet the same problem.  I solve it in this way:

1,First, make soure your operation is not broadcast add which SNPE does not support.

2, Second, look for the function :

def is_broadcast(onnx_op):
    return getattr(onnx_op, 'axis', 0) != 0 or getattr(onnx_op, 'broadcast', 1) == 1
 
it should return true if you don't set broadcast. I think the implment has some probrems, you can write your owns

 

 

  • Up0
  • Down0
microzift
Join Date: 7 May 18
Posts: 4
Posted: Wed, 2018-05-09 13:02

Thanks!

That could solve the warning.

Is that also related to the Error: Node : 'Expected a static initializer for value 298'?

 

 

  • Up0
  • Down0
microzift
Join Date: 7 May 18
Posts: 4
Posted: Wed, 2018-05-16 12:12

Hi yssongest!

I'm still struggeling with removing the broadcast. modifying your suggested function can solve the issue but I can't find this function. Can you please point me to it?

 

Thanks!

  • 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.