Forums - KeyError in ONNX to DLC conversion

1 post / 0 new
KeyError in ONNX to DLC conversion
ashutoshmishra9513
Join Date: 13 Jul 20
Posts: 2
Posted: Wed, 2020-08-19 22:17

I am trying to convert MobilenetV1 SSD from ONNX to DLC using SNPE==1.40 and also 1.36 along with different ONNX versions ==1.21, 1.22, 1.3.

This is the error I am receving while trying to convert

Traceback (most recent call last):

  File "/home/ashutosh/Downloads/snpe-1.40.0.2130/lib/python/qti/aisw/converters/onnx/onnx_to_ir.py", line 140, in convert
    self.graph)
  File "/home/ashutosh/Downloads/snpe-1.40.0.2130/lib/python/qti/aisw/converters/common/converter_ir/translation.py", line 51, in apply_method_to_op
    return translation.apply_method(method_name, *args)
  File "/home/ashutosh/Downloads/snpe-1.40.0.2130/lib/python/qti/aisw/converters/common/converter_ir/translation.py", line 17, in apply_method
    return self.indexed_methods[method_name](*args)
  File "/home/ashutosh/Downloads/snpe-1.40.0.2130/lib/python/qti/aisw/converters/onnx/data_translations.py", line 204, in add_op
    graph.add(ops[-1], input_names, output_names)
  File "/home/ashutosh/Downloads/snpe-1.40.0.2130/lib/python/qti/aisw/converters/common/converter_ir/op_graph.py", line 328, in add
    raise KeyError("Graph has no buffer %s, referred to as input for %s" % (name, op.name))
KeyError: 'Graph has no buffer 274, referred to as input for Gather_73'
2020-08-20 10:27:30,447 - 166 - ERROR - Node Gather_73: 'Graph has no buffer 274, referred to as input for Gather_73'
 
 
Any idea how should this be resolved ?
  • 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.