Skip to main content

DeepResearchLayers

Python Pytest PyPI License Version Maintained zread

A Python library for novel and experimental deep learning layers.

deep_layers bridges the gap between mathematical theory and usable code, providing "plug-and-play" implementations for PyTorch (and TensorFlow/Keras) of complex layers from research papers.

Features

Dual-Backend Compatibility

Supports both PyTorch and TensorFlow (via deep_layers/torch and deep_layers/tf).

Implemented Layers

All layers are available for both PyTorch and TensorFlow.

deep_layers.vision

  • CoordConv (coord_conv): Coordinate Convolution.
  • DropBlock (dropblock): Structured dropout regularization.
  • GLU (glu): Gated Linear Unit.
  • Involution (involution): Inverted convolution.

deep_layers.sequence

  • Hyena (hyena): Hyena Hierarchy operator.
  • Linear Attention (linear_attention): Transformers are RNNs.
  • Mamba (mamba): Selective State Space Model.
  • Retention (retention): RetNet layer.

deep_layers.graph

  • GCN (gcn): Graph Convolutional Network.
  • NTN (ntn): Neural Tensor Network.
  • PointNet (pointnet): PointNet Set Abstraction.
  • Set Transformer (set_transformer): Permutation-invariant attention.
  • SGR (sgr): Symbolic Graph Reasoning.

deep_layers.scientific

  • CORAL (coral): Coordinate-based Neural Field Operator.
  • DeepONet (deeponet): Deep Operator Network.
  • DEQ (deq): Deep Equilibrium Models.
  • HyperLayer (hyperlayer): HyperNetwork-based dynamic layer.
  • KAN (kan): Kolmogorov-Arnold Network.
  • Neural ODE (neural_ode): Ordinary Differential Equation solver layer.
  • PhyCRNet (phycrnet): Physics-Informed Convolutional-Recurrent.
  • PirateNet (piratenet): Physics-Informed Residual Adaptive Network.
  • Sparse Memory (sparse_memory): Differentiable memory with sparse reads/writes.
  • Steerable Conv (steerable_conv): E(2)-Equivariant Steerable CNN.
  • VQ (vq): Vector Quantization layer.

Installation

Install with PyTorch support:

pip install "deep_layers[torch]"

Install with TensorFlow support:

pip install "deep_layers[tf]"

Install with both:

pip install "deep_layers[all]"

For development/editable install:

git clone https://github.com/yourusername/deep_layers.git
cd deep_layers
pip install -e .

Usage

PyTorch Example

import torch
from deep_layers.torch.vision import CoordConv

# Initialize layer
layer = CoordConv(in_channels=3, out_channels=64, kernel_size=3)

# Forward pass
x = torch.randn(1, 3, 224, 224)
output = layer(x)
print(output.shape)

TensorFlow Example

import tensorflow as tf
from deep_layers.tf.vision import CoordConv

# Initialize layer
layer = CoordConv(filters=64, kernel_size=3)

# Forward pass
x = tf.random.normal((1, 224, 224, 3))
output = layer(x)
print(output.shape)

Metadata

Release files for deep-layers 0.1.0

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

Source distribution (sdist)

Source distribution for deep-layers 0.1.0
File Size Uploaded Provenance
deep_layers-0.1.0.tar.gz 95.2 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for deep-layers 0.1.0
File Interpreter ABI Platform
deep_layers-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 172.5 kB

Release files / deep_layers-0.1.0.tar.gz

Download URL deep_layers-0.1.0.tar.gz
Size 95.2 kB
Tags Source
SHA-256 checksum
How to use checksums
c575080b4b430fb85df7a78c1718e84dd4f1f541e35f4e0a1360df09dc506a3f
BLAKE2b-256 checksum
How to use checksums
712ddf1383244590b4146b4409fa80ee7adf2dcee5b67d34af3dfe84259fc617
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 31, 2026.

Transparency log

Release files / deep_layers-0.1.0-py3-none-any.whl

Download URL deep_layers-0.1.0-py3-none-any.whl
Size 77.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f06c48f28e735508fb375f1c8461684e3b7216a10b9c212aa1e5ea50a341ec09
BLAKE2b-256 checksum
How to use checksums
638aaa63dbfbdf03d501828e5f74978a614dfcb4a81eb0b40b59285cac00d5b2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 31, 2026.

Transparency log

Security for deep-layers 0.1.0

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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for deep_layers-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 31, 2026.

Transparency log

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.1.0 This release

2 release files Full 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