Skip to content

[Relay][ONNX] KeyError: ‘W’ when compiling from onnx #3134

@mnboos

Description

@mnboos

Dear tvm team

I'm aware that I'm not supposed to use this issue tracker as a first instance. However, in the community was no reaction and in the meantime the model I uploaded was deleted. So I added it here as an attachment, so it won't get lost anymore.
yolo_failing.zip

The attached model leads to an exception during the compilation:

 File "C:\src\xyz\src\tvm\compile_model.py", line 78, in compile_model
    relay_func, params = relay.frontend.from_onnx(onnx_model, shape=input_shape_dict)
  File "C:\Users\bmar\AppData\Roaming\Python\Python36\site-packages\tvm-0.6.dev0-py3.6-win-amd64.egg\tvm\relay\frontend\onnx.py", line 1139, in from_onnx
    sym, params = g.from_onnx(graph, opset)
  File "C:\Users\bmar\AppData\Roaming\Python\Python36\site-packages\tvm-0.6.dev0-py3.6-win-amd64.egg\tvm\relay\frontend\onnx.py", line 960, in from_onnx
    inputs = [self._nodes[self._renames.get(i, i)] for i in node.input]
  File "C:\Users\bmar\AppData\Roaming\Python\Python36\site-packages\tvm-0.6.dev0-py3.6-win-amd64.egg\tvm\relay\frontend\onnx.py", line 960, in <listcomp>
    inputs = [self._nodes[self._renames.get(i, i)] for i in node.input]
KeyError: 'W'

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions