Skip to main content

convd: D-dimensional Convolution Layers (D>3)

PyPI Version Python Versions TensorFlow Version License

High-dimensional convolution layers for TensorFlow/Keras.

from convd import FFTConvD, SeparableConv4D, SeparableConv6D

Minimal example of 4D convolution

import tensorflow as tf
from convd import FFTConvD

# Shape: [batch, x1, x2, x3, x4, channels]
x = tf.random.normal([1, 8, 8, 8, 8, 1])
y = FFTConvD(filters=4, kernel_size=3)(x)

print(y.shape)  # (1, 8, 8, 8, 8, 4)

Minimal example of 6D convolution

import tensorflow as tf
from convd import FFTConvD

# Shape: [batch, x1, x2, x3, x4, x5, x6, channels]
x = tf.random.normal([1, 4, 4, 4, 4, 4, 4, 1])
y = FFTConvD(filters=4, kernel_size=3)(x)

print(y.shape)  # (1, 4, 4, 4, 4, 4, 4, 4)

Capabilities

  • FFTConvD: circular convolution for square 1D-6D inputs.
  • SeparableConv4D: separable 4D convolution using 2D kernels.
  • SeparableConv6D: separable 6D convolution using 3D kernels.

Limitations

  • FFTConvD requires equal spatial sizes, for example N x N or N x N x N.
  • FFTConvD supports up to 6 spatial dimensions.
  • 7D+ is not currently supported because TensorFlow tf.pad does not support the required tensor rank.
  • FFTConvD requires kernel_size <= N.
  • FFTConvD is circular convolution, not zero-padded linear convolution.

Citation

This software is released for broad research, educational, and engineering use. If this package helps your work, please cite the following paper:

@misc{tarafdar2026interpretablefrugallearningsystems,
      title={Interpretable and Frugal Learning Systems Employing Multiresolution Pyramids and Volterra Kernels},
      author={Kishore Kumar Tarafdar},
      year={2026},
      eprint={2606.15011},
      archivePrefix={arXiv},
      primaryClass={eess.SP},
      url={https://arxiv.org/abs/2606.15011},
}

License

Apache License 2.0. See LICENSE.

Metadata

Release files for convd 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for convd 0.0.2
File Size Uploaded Provenance
convd-0.0.2.tar.gz 11.5 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for convd 0.0.2
File Interpreter ABI Platform
convd-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 27.4 kB

Release files / convd-0.0.2.tar.gz

Download URL convd-0.0.2.tar.gz
Size 11.5 kB
Tags Source
SHA-256 checksum
How to use checksums
6f75cb7627543a13cf244347fb52393b3a1a8701742dac72394ccb3dc8cad0b3
BLAKE2b-256 checksum
How to use checksums
127d3a81246b7773a7f51ae9eb0a1043568720421c299a0121654fd9d2fa7bc0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Release files / convd-0.0.2-py3-none-any.whl

Download URL convd-0.0.2-py3-none-any.whl
Size 15.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4aa044d17f1c33ee4ea24f11afe88174c7e723e696cfd589e214ded59122d93b
BLAKE2b-256 checksum
How to use checksums
b00f6dff3622eaa88aa9533979fad4a48bd3070cf4d185699c9eb0b21fac64d4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Security for convd 0.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page