Skip to main content

High Dimensional Convolution Layers.

Project description

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.

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

convd-0.0.2.tar.gz (11.5 kB view details)

Uploaded Source

Built Distribution

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

convd-0.0.2-py3-none-any.whl (15.9 kB view details)

Uploaded Python 3

File details

Details for the file convd-0.0.2.tar.gz.

File metadata

  • Download URL: convd-0.0.2.tar.gz
  • Upload date:
  • Size: 11.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for convd-0.0.2.tar.gz
Algorithm Hash digest
SHA256 6f75cb7627543a13cf244347fb52393b3a1a8701742dac72394ccb3dc8cad0b3
MD5 6401425bacd7bb6fb1d520d16fcbf1d4
BLAKE2b-256 127d3a81246b7773a7f51ae9eb0a1043568720421c299a0121654fd9d2fa7bc0

See more details on using hashes here.

File details

Details for the file convd-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: convd-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 15.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for convd-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4aa044d17f1c33ee4ea24f11afe88174c7e723e696cfd589e214ded59122d93b
MD5 a8d017406bf334865ce6a74c6f637486
BLAKE2b-256 b00f6dff3622eaa88aa9533979fad4a48bd3070cf4d185699c9eb0b21fac64d4

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