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

Make tf flow functions usable for onnx #431

Merged
merged 3 commits into from
Jul 31, 2023
Merged

Make tf flow functions usable for onnx #431

merged 3 commits into from
Jul 31, 2023

Conversation

vieting
Copy link
Contributor

@vieting vieting commented Jul 19, 2023

To set up a recognition using RASR's tensorflow-forward flow node, we have helper functions in returnn.flow.py. I'd like to generalize them to also support the onnx-forward node.

This involves generalizing the existing function to create the precomputed feature flow and adding separate functions for tf and onnx with the specific needs for their configs. The function to integrate it into the base flow is basically just renamed and a version keeping the tf behavior is added.

@vieting
Copy link
Contributor Author

vieting commented Jul 19, 2023

This will be used e.g. in rwth-i6/i6_experiments#155.

returnn/flow.py Outdated Show resolved Hide resolved
@vieting
Copy link
Contributor Author

vieting commented Jul 27, 2023

The number of threads is now moved to the post config and the hashing issue for flow post configs (#436) is resolved.

Copy link
Contributor

@JackTemaki JackTemaki left a comment

Choose a reason for hiding this comment

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

(ONNX) Recognition with this worked fine, also from the code I see no issues. Potential TF changes should be covered by the AppTek-tests (@michelwi ?), so I guess this is all good.

@michelwi
Copy link
Contributor

Potential TF changes should be covered by the AppTek-tests.

No, we do not use this function.

@vieting
Copy link
Contributor Author

vieting commented Jul 28, 2023

I tested the changes for one of my tf precomputed hybrid setups.

returnn/flow.py Show resolved Hide resolved
returnn/flow.py Show resolved Hide resolved
@vieting vieting merged commit df08050 into main Jul 31, 2023
4 checks passed
@christophmluscher christophmluscher deleted the peter_tf_onnx_flow branch July 31, 2023 12:54
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.

4 participants