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

Update from keras2onnx to tf2onnx #15162

Merged
merged 1 commit into from
Jan 14, 2022
Merged

Conversation

gante
Copy link
Member

@gante gante commented Jan 14, 2022

What does this PR do?

keras2onnx has been dead for a while, with the development being made in tf2onnx. It is the successor, yet also retrocompatible.

In fact, our tests were failing right at the import level (i.e. import keras2onnx fails with recent keras versions). These changes fix the tests for TF+ONNX.

Example of test command that gets fixed with this PR:
RUN_SLOW=1 pytest tests/test_modeling_tf_bert.py::TFBertModelTest::test_onnx_runtime_optimize

@gante gante requested review from sgugger and mfuntowicz January 14, 2022 17:02
Copy link
Collaborator

@sgugger sgugger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot for fixing this!

@gante gante merged commit ebc4edf into huggingface:master Jan 14, 2022
@gante gante deleted the update_to_tf2onnx branch March 1, 2022 15:13
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

Successfully merging this pull request may close these issues.

2 participants