Forums - snpe-tensorflow-to-dlc

3 posts / 0 new
Last post
snpe-tensorflow-to-dlc
yyy76615419
Join Date: 11 Jun 20
Posts: 4
Posted: Mon, 2020-07-27 05:33
when i run this command as flow in $SNPE_ROOT/bin/x86_64-linux-clang:
snpe-tensorflow-to-dlc --input_network ~/snpe-1.40.0.2130/forzen_mobilenet_v2_1.pb \
--input_dim input "1,224,224,3" \
--out_node "MobilenetV2/Predictions/Reshape_1" \
--output_path ./mobilenet_v2.dlc \
--allow_unconsumed_nodes
 
I got the error:
ValueError: cannot reshape array of size 2 into shape (1,)
 
May I ask what caused this? how to solve this problem?
 
Thanks,
Best regards!
  • Up0
  • Down0
yyy76615419
Join Date: 11 Jun 20
Posts: 4
Posted: Tue, 2020-07-28 01:33

The tensorflow version I use is 1.1.0, which is too old and caused this problem.

  • Up0
  • Down0
yyy76615419
Join Date: 11 Jun 20
Posts: 4
Posted: Tue, 2020-07-28 01:34

The tensorflow version I use is 1.1.0, which is too old and caused this problem.

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