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='GRU', version=14)) #233

Open
ZM-J opened this issue Oct 25, 2024 · 1 comment

Comments

@ZM-J
Copy link

ZM-J commented Oct 25, 2024

Example code:

import tensorflow as tf

X = tf.keras.layers.Input(shape=(60, 78),
                                name='factor')
x = X
y = tf.keras.layers.GRU(1,
                        return_sequences=True)(x)

model = tf.keras.models.Model(inputs=X,
                              outputs=y)

import tf2onnx
onnx_model_path = '/path/to/model.onnx'
model_proto, external_tensor_storage = tf2onnx.convert.from_keras(model, output_path=onnx_model_path)

import onnx
onnx_model = onnx.load(onnx_model_path)
pytorch_model = convert(onnx_model)

Moreover, I'm currently using tensorflow==2.10.0, pytorch==2.5.0 and torchvision==0.20.0.

@ZM-J
Copy link
Author

ZM-J commented Oct 25, 2024

This issue shall be relevant to #136

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