Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

keras_fft-1.0.0.tar.gz (19.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

keras_fft-1.0.0-py3-none-any.whl (22.9 kB view details)

Uploaded Python 3

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

Hashes for keras_fft-1.0.0.tar.gz
Algorithm Hash digest
SHA256 b25ed3cc4a4c7a70a2d3600635e7198fade7c8bd86ec23ca44caad827223813b
MD5 5cc464fc26fcfd6ac989ea69ca85d9fe
BLAKE2b-256 35b94cd84f181758ecc4824b2acb20407d575b9860d659c28b300496ad40d0c4

See more details on using hashes here.

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

Hashes for keras_fft-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 81076657e0f1bcff77cee7cc55700e599bdf045233420eb11fc2ba4fe183c274
MD5 bd53f32c4c6dff131d8afedf483e0361
BLAKE2b-256 d2dd4da7b2608d2480903f0f27aef06a43263ee40424a85f0de2fb8d609b0266

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page