Forums - Error while trying to execute snpe-onnx-to-dlc

2 posts / 0 new
Last post
Error while trying to execute snpe-onnx-to-dlc
jayakumar.r
Join Date: 28 Oct 19
Posts: 2
Posted: Wed, 2019-11-13 05:05

Hi,

When I tried to execute snpe-onnx-to-dlc from SDK version 1.31.0 with latest version ONNX installed, I am getting following error message:

 

Traceback (most recent call last):
  File "/home/snpe-1.31.0/snpe-1.31.0.522/bin/x86_64-linux-clang/snpe-onnx-to-dlc", line 11, in <module>
    from snpe.converters import onnx as onnx_converter
  File "/home/snpe-1.31.0/snpe-1.31.0.522/lib/python/snpe/converters/onnx/__init__.py", line 14, in <module>
    from . import math_translations
  File "/home/snpe-1.31.0/snpe-1.31.0.522/lib/python/snpe/converters/onnx/math_translations.py", line 600, in <module>
    OnnxTranslations.register_translation(OnnxTanhTranslation(),
  File "/home/snpe-1.31.0/snpe-1.31.0.522/lib/python/snpe/converters/onnx/math_translations.py", line 589, in __init__
    self.register_op_schema('ScaledTanh', [1, 6])
  File "/home/snpe-1.31.0/snpe-1.31.0.522/lib/python/snpe/converters/onnx/onnx_translations.py", line 66, in register_op_schema
    schema = defs.get_schema(name, version, '')
RuntimeError: No schema registered for 'ScaledTanh'!

 

Could you please help to solve this issue?

  • Up0
  • Down0
blueardour
Join Date: 28 Jul 17
Posts: 1
Posted: Mon, 2019-12-02 15:29

I met the same problem when using python 3.6.8. We should change to python2.7 or python3.4 as the setup page requires. 

'Python 2.7 or Python 3.4'

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