Forums - snpe-tensorflow-to-dlc on Boolean placeholders

1 post / 0 new
snpe-tensorflow-to-dlc on Boolean placeholders
jax79sg
Join Date: 10 Mar 18
Posts: 12
Posted: Mon, 2018-05-14 19:26

Hi,

I have a tensorflow frozen graph which consists of a Boolean Placeholder. When snpe-tensorflow-to-dlc reaches this placeholder, the following error would be produced. Can SNPE support Boolean placeholders? Are there any other ways to get around it besides removing the placeholder and replace it with a constant boolean? (I've done it like this https://stackoverflow.com/a/46598318)

Thanks.

2018-05-15 10:18:04,070 - 126 - ERROR - Encountered Error: as_list() is not defined on an unknown TensorShape.
Traceback (most recent call last):
  File "/home/dh/snpe-sdk/bin/x86_64-linux-clang/snpe-tensorflow-to-dlc", line 120, in main
    converter.convert(args.dlc, args.model_version, converter_command)
  File "/home/dh/snpe-sdk/lib/python/converters/tensorflow/converter.py", line 298, in convert
    self._graph_helper = GraphHelper(self._model.session, self._model, self._ops)
  File "/home/dh/snpe-sdk/lib/python/converters/tensorflow/util.py", line 125, in __init__
    self._placeholders_stubs_map = self._create_placeholders_tensors(session)
  File "/home/dh/snpe-sdk/lib/python/converters/tensorflow/util.py", line 140, in _create_placeholders_tensors
    shape = tensor.get_shape().as_list        ()
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/tensor_shape.py", line 820, in as_list
    raise ValueError("as_list() is not defined on an unknown TensorShape.")
ValueError: as_list() is not defined on an unknown TensorShape.
 

Regards,
Jax

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