Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NotImplementedError: Converter is not implemented (OperationDescription(domain='', operation_type='Loop', version=13)) #204

Open
pzy2000 opened this issue Mar 15, 2024 · 1 comment

Comments

@pzy2000
Copy link

pzy2000 commented Mar 15, 2024

image

Traceback (most recent call last):
File "issue_onnx2torch_002.py", line 15, in
torch_model = convert(onnx_model_path)
File "/opt/conda/envs/tf2onnx/lib/python3.7/site-packages/onnx2torch/converter.py", line 107, in convert
version=version,
File "/opt/conda/envs/tf2onnx/lib/python3.7/site-packages/onnx2torch/node_converters/registry.py", line 69, in get_converter
raise NotImplementedError(f'Converter is not implemented ({description})')
NotImplementedError: Converter is not implemented (OperationDescription(domain='', operation_type='Loop', version=13))

run the below codes to reproduce the above issue:

import numpy as np
import torch
from onnx2torch import convert

def _init_input(input_shape):
input_shape = list(input_shape)
input_shape[0] = 10
input_shape = tuple(input_shape)
input = np.random.rand(*input_shape)
return input

onnx_model_path = "lstm0-sinewave_origin.onnx"
torch_model = convert(onnx_model_path)

@pzy2000
Copy link
Author

pzy2000 commented Mar 15, 2024

the onnx file can be downloaded here:
lstm0-sinewave_origin.zip

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

No branches or pull requests

1 participant