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

Convolution #617

Merged
merged 3 commits into from
Jan 6, 2024
Merged

Convolution #617

merged 3 commits into from
Jan 6, 2024

Conversation

AngelEzquerra
Copy link
Contributor

Add a convolve function with similar API and behavior as numpy's convolve.
I added openmp support. This is the first time I use it so hopefully I did it right!

Copy link
Owner

@mratsim mratsim left a comment

Choose a reason for hiding this comment

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

Thanks.

Does signal processing also use cross-entropy?

@AngelEzquerra
Copy link
Contributor Author

Thanks.

Does signal processing also use cross-entropy?

Not in my experience.

I might make another PR later to add a correlation function which numpy supports as well. If we add an FFT too at some point (which I think we should since it’s such a foundational DSP algorithm) we could use it to calculate the convolution more efficiently for larger tensor sizes.

@mratsim
Copy link
Owner

mratsim commented Jan 6, 2024

Ah yes I meant cross-correlation not cross-entropy

@mratsim mratsim merged commit 38ffb44 into mratsim:master Jan 6, 2024
8 checks passed
@AngelEzquerra AngelEzquerra deleted the convolution branch January 15, 2024 18:06
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