Forums - Cannot squash node elementwise_sum_0 onto input buffer 232, which has more than one consumer

1 post / 0 new
Cannot squash node elementwise_sum_0 onto input buffer 232, which has more than one consumer
cannn1
Join Date: 8 Apr 20
Posts: 2
Posted: Fri, 2020-07-31 01:11

Dear all,

I'm converting a MobileNetV3 model to dlc but facing with this error below this msg!

You can find the model architecture right here: https://github.com/kuan-wang/pytorch-mobilenet-v3

Hope to have your idea to solve it. Thanks

__________________________

Traceback (most recent call last):

  File "/home/wsh/Workspace/snpe-1.36.0.746/lib/python/snpe/converters/onnx/onnx_to_ir.py", line 136, in ir_optimize
    op_graph_optimizations.apply_graph_optimizations(graph, self.disable_batchnorm_folding, **kwargs)
  File "/home/wsh/Workspace/snpe-1.36.0.746/lib/python/snpe/converters/common/converter_ir/op_graph_optimizations.py", line 80, in apply_graph_optimizations
    OptimizationTranslations.apply_method_to_graph(SQUASH_SUM, graph, fail_if_no_method=False)
  File "/home/wsh/Workspace/snpe-1.36.0.746/lib/python/snpe/converters/common/converter_ir/translation.py", line 92, in apply_method_to_graph
    translation.apply_method(method_name, graph, *args)
  File "/home/wsh/Workspace/snpe-1.36.0.746/lib/python/snpe/converters/common/converter_ir/translation.py", line 17, in apply_method
    return self.indexed_methods[method_name](*args)
  File "/home/wsh/Workspace/snpe-1.36.0.746/lib/python/snpe/converters/common/converter_ir/op_graph_optimizations.py", line 541, in squash_sum
    snpe_translation_utils.squash_nodes_into_previous(graph, matched_node_list, "DEBUG_ELEMENTWISESUM_SQUASH")
  File "/home/wsh/Workspace/snpe-1.36.0.746/lib/python/snpe/converters/common/utils/snpe_translation_utils.py", line 195, in squash_nodes_into_previous
    graph.squash(node, input_buffer.name)
  File "/home/wsh/Workspace/snpe-1.36.0.746/lib/python/snpe/converters/common/converter_ir/op_graph.py", line 506, in squash
    % (node.op.name, input_name))
ValueError: Cannot squash node elementwise_sum_0 onto input buffer 232, which has more than one consumer
2020-07-31 14:54:26,656 - 164 - ERROR - Cannot squash node elementwise_sum_0 onto input buffer 232, which has more than one consumer
  • 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.