Skip to content
This repository has been archived by the owner on Jan 3, 2023. It is now read-only.

RuntimeError: Node (): unknown attribute 'starts' #604

Open
JustinMBrown opened this issue Mar 25, 2020 · 0 comments
Open

RuntimeError: Node (): unknown attribute 'starts' #604

JustinMBrown opened this issue Mar 25, 2020 · 0 comments

Comments

@JustinMBrown
Copy link

I converted a pytorch model to ONNX using these settings:

input = torch.tensor(torch.ones(1,3,32,32))

torch.onnx.export(model.module,
input,
"test.onnx",
export_params=True,
opset_version=11,
do_constant_folding=True,
input_names=['input'],
output_names=['output'],
verbose=True)

I imported that model to ngraph using these commands:

import onnx
from ngraph_onnx.onnx_importer.importer import import_onnx_model
onnx_protobuf = onnx.load('test.onnx')
ng_function = import_onnx_model(onnx_protobuf)

On import_onnx_model, it throws this error:

File "/home/justin/PycharmProjects/beverage-inference/venv/lib/python3.6/site-packages/ngraph_onnx/onnx_importer/importer.py", line 36, in import_onnx_model
return onnx_import.import_onnx_model(onnx_protobuf.SerializeToString())
RuntimeError: Node (): unknown attribute 'starts'

Is there a way to see which node has the "starts" attribute? I have a feeling it's related to slice, but I can't be sure.

Attached is a dump of the nodes from the onnx protobuf, nodes.txt.

Versions:
pytorch 1.4
onnx 1.6
ngraph-core 0.26
ngraph-onnx 0.24

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant