FFT pack for Keras3
Project description
KerasFFT
A package that aims at simplifying the usage of FFT in Keras3.
Keras3 does not have a complex dtype. This means, that the ops.fft call is a bit cumbersome, as it expects a tuple of real- and imaginary part in float32.
Basic FFT
The basic FFT part of this package acts as an inplace option for ops.fft, which handles the input automatically.
It accepts
- a tuple of real and imaginary part,
fft((x_real, x_imag)), or - a single float KerasTensor, which is then interpreted as the real part,
fft(x).
The latter option automatically initializes a zero-Tensor with the same shape and dtype as x.
FFT-based differentiation
Additionally, the module keras_fft.derivative contains code for the differentiation in Fourier space,
which is an elegant way to get the nth derivative of a signal.
Note
Keras backends JAX and Tensorflow are currently supported.
Installation
Usage
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file keras_fft-1.0.0.tar.gz.
File metadata
- Download URL: keras_fft-1.0.0.tar.gz
- Upload date:
- Size: 19.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b25ed3cc4a4c7a70a2d3600635e7198fade7c8bd86ec23ca44caad827223813b
|
|
| MD5 |
5cc464fc26fcfd6ac989ea69ca85d9fe
|
|
| BLAKE2b-256 |
35b94cd84f181758ecc4824b2acb20407d575b9860d659c28b300496ad40d0c4
|
File details
Details for the file keras_fft-1.0.0-py3-none-any.whl.
File metadata
- Download URL: keras_fft-1.0.0-py3-none-any.whl
- Upload date:
- Size: 22.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
81076657e0f1bcff77cee7cc55700e599bdf045233420eb11fc2ba4fe183c274
|
|
| MD5 |
bd53f32c4c6dff131d8afedf483e0361
|
|
| BLAKE2b-256 |
d2dd4da7b2608d2480903f0f27aef06a43263ee40424a85f0de2fb8d609b0266
|