Skip to content

Incompatible attr in node elemwise_add0 at 1-th input: expected [1,180], got [180] #2599

Description

@mnboos

See: https://discuss.tvm.ai/t/nnvm-base-nnvmerror-cannot-find-argument-auto-pad/1644/3

This error occurs when I try to compile an ONNX model. I'm currently clarifying if I'm allowed to share the model or if it's confidential.

Traceback (most recent call last):
  File "/home/martin/Dev/s-tvm/compile_model.py", line 189, in <module>
    compile_model(model_name=model_name, model_path=model_path, output_dir=output_dir)
  File "/home/martin/Dev/s-tvm/compile_model.py", line 93, in compile_model
    dtype=input_dtype_dict)
  File "/home/martin/.local/lib/python3.6/site-packages/nnvm-0.8.0-py3.6.egg/nnvm/compiler/build_module.py", line 270, in build
    ishape, _ = graph_util.infer_shape(graph, **shape)
  File "/home/martin/.local/lib/python3.6/site-packages/nnvm-0.8.0-py3.6.egg/nnvm/compiler/graph_util.py", line 31, in infer_shape
    graph = graph.apply("InferShape")
  File "/home/martin/.local/lib/python3.6/site-packages/nnvm-0.8.0-py3.6.egg/nnvm/graph.py", line 234, in apply
    check_call(_LIB.NNGraphApplyPasses(self.handle, npass, cpass, ctypes.byref(ghandle)))
  File "/home/martin/.local/lib/python3.6/site-packages/nnvm-0.8.0-py3.6.egg/nnvm/_base.py", line 75, in check_call
    raise NNVMError(py_str(_LIB.NNGetLastError()))
nnvm._base.NNVMError: Error in operator elemwise_add0: [07:37:27] /home/martin/Dev/tvm/nnvm/src/top/nn/../elemwise_op_common.h:38: Check failed: assign(&dattr, (*vec)[i]) Incompatible attr in node elemwise_add0 at 1-th input: expected [1,180], got [180]

cc @srkreddy1238

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions