Forums - tensorflow MobilenetV2 conversion fail

1 post / 0 new
tensorflow MobilenetV2 conversion fail
ztwe13877
Join Date: 15 Jun 18
Posts: 1
Posted: Fri, 2018-06-15 01:54

OS: Ubuntu 16.04

SNPE version: 1.15.0 and 1.16.2 

When I execute the following command:

cd snpe-1.15.0/bin/x86_64-linux-clang

./snpe-tensorflow-to-dlc --graph mobilenet_v2_1.0_inf_graph_freeze.pb -i "input" 224,224,3 --out_node=MobilenetV2/Predictions

 

It fails. The log is shown as following:

Traceback (most recent call last):
  File "./snpe-tensorflow-to-dlc", line 122, in main
    converter.convert(args.dlc, args.model_version, converter_command)
  File "/root/snpe/snpe-1.15.0/bin/x86_64-linux-clang/converters/tensorflow/converter.py", line 304, in convert
    self._convert_layers()
  File "/root/snpe/snpe-1.15.0/bin/x86_64-linux-clang/converters/tensorflow/converter.py", line 340, in _convert_layers
    descriptors = self._resolve_descriptors_from_nodes(graph_ops)
  File "/root/snpe/snpe-1.15.0/bin/x86_64-linux-clang/converters/tensorflow/converter.py", line 439, in _resolve_descriptors_from_nodes
    resolved_descriptors = resolver.resolve_layer(graph_matcher, self._graph_helper)
  File "/root/snpe/snpe-1.15.0/bin/x86_64-linux-clang/converters/tensorflow/layers/eltwise.py", line 97, in resolve_layer
    const_tensor = self._broadcast_tensor(const_tensor, eltwise_shape)File "/root/snpe/snpe-1.15.0/bin/x86_64-linux-clang/converters/tensorflow/layers/eltwise.py", line 127, in _broadcast_tensor
    broadcasted_tensor += tensor
ValueError: non-broadcastable output operand with shape (14,14,64) doesn't match the broadcast shape (1,14,14,64)
  • 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.