[OpenVINO backend] Implements Fourier Transform operation istft()#22323
[OpenVINO backend] Implements Fourier Transform operation istft()#22323hertschuh merged 5 commits intokeras-team:masterfrom
Conversation
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request significantly enhances the OpenVINO backend by providing a complete implementation of the Inverse Short-Time Fourier Transform (ISTFT) operation. This addition allows for the reconstruction of time-domain signals from their frequency-domain representations, mirroring established approaches in other backends like JAX and Torch. The implementation leverages OpenVINO's native operations for dynamic shape handling and efficient computation, making the backend more capable for audio and signal processing tasks. Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request implements the istft operation for the OpenVINO backend. The implementation includes a new helper function _overlap_sequences_ov to perform the overlap-and-add method using OpenVINO operations. The changes look good overall. I've added a couple of suggestions to improve the readability and maintainability of the new code, mainly by using more descriptive variable names, adding comments to a complex function, and replacing a magic number with a named constant.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #22323 +/- ##
=======================================
Coverage 82.90% 82.91%
=======================================
Files 594 594
Lines 65844 65940 +96
Branches 10293 10310 +17
=======================================
+ Hits 54590 54676 +86
- Misses 8638 8641 +3
- Partials 2616 2623 +7
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
6742e15 to
9c63171
Compare
319919e to
44bd192
Compare
44bd192 to
bdbdbd0
Compare
hertschuh
left a comment
There was a problem hiding this comment.
Thanks for implementing these!
Implements
istftfor the OpenVINO backend via a overlap and add approach using OpenVINO ops, mirroring the JAX/Torch reshape trick.Added
_overlap_sequences_ovhelper that handles dynamic num_sequences via shape_of/gather ops.Removed relevent tests from
excluded_concrete_tests.txt.Closes: openvinotoolkit/openvino/issues/34418