onnx2torch icon indicating copy to clipboard operation
onnx2torch copied to clipboard

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

Open pzy2000 opened this issue 11 months ago • 1 comments

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 avatar Mar 15 '24 13:03 pzy2000