Forums - snpe 1.14.0 eltwise.py bug

2 posts / 0 new
Last post
snpe 1.14.0 eltwise.py bug
f10.liu
Join Date: 22 Mar 18
Posts: 15
Posted: Thu, 2018-04-12 01:59

 I downloaded mobilenetv2 model from deeplab model zoo :

https://github.com/tensorflow/models/blob/master/research/deeplab/g3doc/...

And when I run the command on SNPE 1.14.0

"snpe-tensorflow-to-dlc --graph mobilenetv2_deeplab/frozen_inference_graph.pb --input_dim sub_7 513,513,3 --dlc mobilenetv2_deeplab.dlc --out logits/semantic/BiasAdd",

and I got th error as below:

 ERROR - Encountered Error: non-broadcastable output operand with shape (65,65,64) doesn't match the broadcast shape (1,65,65,64)

Then I found the bug in eltiwise.py, line 127:" broadcasted_tensor += tensor" caused this error, I think author want to reshape tensor shape to the input "shape"  of "def _broadcast_tensor(self, tensor, shape)", but the implemention is not right, I modified "broadcasted_tensor += tensor" to "broadcasted_tensor = broadcasted_tensor + tensor

 broadcasted_tensor = broadcasted_tensor.reshape(shape)".

Please confirm this modification is correct.

  • Up0
  • Down0
gesqdn-forum
Join Date: 4 Nov 18
Posts: 184
Posted: Sun, 2019-06-16 21:57

Hi FangLiu,
The input dimensions provided for arguments are incorrect. Please find the below command for right usage,

$ snpe-tensorflow-to-dlc --graph mobilenetv2_deeplab/frozen_inference_graph.pb --input_dim sub_7 1,513,513,3 --out_node ArgMax --dlc deeplabv3.dlc --allow_unconsumed_nodes

 

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