Skip to content

ggml : add ggml_fft and ggml_ifft operator #1105

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

ilhamsyahids
Copy link

This PR implements FFT and IFFT operator on CPU. I also added simple test apply FFT and inverse it.

I'm kinda new with this, so I'm happy to adjust and apply any review

Signed-off-by: Ilham Syahid S <ilhamsyahids@gmail.com>
Signed-off-by: Ilham Syahid S <ilhamsyahids@gmail.com>
This commit adds a new test file `test-fft.c` to validate the FFT and IFFT implementations. The test generates a simple sinusoidal signal, performs a forward FFT followed by an inverse FFT, and checks that the reconstructed signal matches the original signal within a specified tolerance.

Signed-off-by: Ilham Syahid S <ilhamsyahids@gmail.com>
@ilhamsyahids
Copy link
Author

Hello @ggerganov @slaren is there any review or comment regarding this PR?

@ggerganov
Copy link
Member

Hi @ilhamsyahids - thank you for the contribution. It's not forgotten and I will try to make a review soon.

@ggerganov
Copy link
Member

Hey @ilhamsyahids, I thought further about this functionality, and decided that for now it is not worth to add it to ggml (#1049 (comment)). Maybe in the future, when we have more clear need for it, we can revisit.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants