Forums - Runtime Warning while converting tensorflow model to DLC.

1 post / 0 new
Runtime Warning while converting tensorflow model to DLC.
kshamajayantvete
Join Date: 6 Sep 17
Posts: 9
Posted: Tue, 2018-05-22 02:03

Hi,

I am trying to convert my tensorflow model to DLC using following command.

$snpe-tensorflow-to-dlc --graph=onet_landmark.pb --input_dim "onet/input" 48,48,3  --out_node onet/prob1 --out_node onet/conv6-2/conv6-2 --out_node onet/conv6-3/conv6-3 --dlc=onet_landmark.dlc  --allow_unconsumed_nodes --verbose

and getting following warning.

: RuntimeWarning: error_code=1004; error_message=Layer parameters combination is invalid. Layer onet/prelu5/add: dimensions mismatch between onet/prelu5/Mul:0 {1, 1, 256} and onet/prelu5/add {256}; error_component=Model Validation; line_no=117; thread_id=140454368323392
Anyhow DLC is generated, But I am not able to run my model.

with $snpe-net-run --container onet_landmark.dlc --input_list data/onet_input.txt

it is showing following error.

error_code=1004; error_message=Layer parameters combination is invalid. Layer onet/conv5/conv5/MatMul: mismatch between size of input onet/conv4/BiasAdd:0 (6272) and width of weight matrix (1152); error_component=Model Validation; line_no=645; thread_id=-279841624

I am not able to find what's going wrong. please help me.

Regards,

Kshama Vete

 

  • Up0
  • Down0

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.