Forums - OperationNotFoundError /ConverterError

2 posts / 0 new
Last post
OperationNotFoundError /ConverterError
gershoms
Join Date: 28 Aug 19
Posts: 1
Posted: Thu, 2019-08-29 05:44

I am tring nto convert a .pb file into a .dlc file. I followed the setup described in the qualcomm website. I am facing the error mentioned below. 

 

Traceback (most recent call last):
  File "snpe-tensorflow-to-dlc", line 25, in <module>
    from snpe.converters.tensorflow.converter import DlcConverter
  File "/home/gershom/Documents/snpe-1.29.0.456/lib/python/snpe/converters/tensorflow/converter.py", line 23, in <module>
    import snpe.converters.tensorflow.layers as layers
  File "/home/gershom/Documents/snpe-1.29.0.456/lib/python/snpe/converters/tensorflow/layers/__init__.py", line 16, in <module>
    from snpe.converters.tensorflow.layers.convolution import (
  File "/home/gershom/Documents/snpe-1.29.0.456/lib/python/snpe/converters/tensorflow/layers/convolution.py", line 115
    except OperationNotFoundError, ConverterError:
                                 ^
SyntaxError: invalid syntax
 
This was the script which I ran.
 
snpe-tensorflow-to-dlc --graph /home/gershom/Pycharm
Projects/test/model/GenderTfModel.pb --input_dim input_1 "1,120,120,3"  --out_node "fc2/softmax/Softmax" --dlc genderAndroid.dlc --allow_unconsumed_nodes
 
Any help would be appreciated. I am a newbie to this subject so please excuse any silly mistakes.
  • Up0
  • Down0
gesqdn-forum
Join Date: 4 Nov 18
Posts: 184
Posted: Tue, 2019-09-03 04:51

Hi,
By referring the error message, the "get_conv_bias()" in "$SNPE_ROOT/lib/python/snpe/converters/tensorflow/layers/convolution.py" is unable to resolve the bais values for convolution layer.
For further debugging, can you kindly provide your model architecture/graph details.
Thank you.

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