Skip to main content

Installation

Use PyPI for production:

pip install multilayer

For development, first clone the repo then use -e flag.

git clone git@github.com:tahashieenavaz/multilayer.git
pip install -e .

Examples

Basic Usage

from multilayer import mlp

encoder = mlp(32 * 32, 10, 512)

# instead of ↓

encoder = torch.nn.Sequential(
    torch.nn.Linear(32 * 32, 512, bias=False),
    torch.nn.LayerNorm(512),
    torch.nn.GELU(),
    torch.nn.Linear(512, 10),
)

Alias Functions

from multilayer import multilayer, mlp

assert multilayer == mlp

Metadata

Release files for multilayer 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 multilayer 0.0.2
File Size Uploaded Provenance Actions
multilayer-0.0.2.tar.gz 6.6 kB With provenance Details for multilayer-0.0.2.tar.gz

Built distribution (wheel)

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

Total release size: 11.0 kB

Release files / multilayer-0.0.2.tar.gz

Download URL multilayer-0.0.2.tar.gz
Size 6.6 kB
Tags Source
SHA-256 checksum
How to use checksums
71c0d2758a1be963345d9ab4d0cff76eedce4b91bb92b4bafa07968ec4e0f30d
BLAKE2b-256 checksum
How to use checksums
2edee0119d7135ecd981ec12ee9763918c7a0ce9f68d7b938e066e90ce71ac04
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 29, 2026.

Transparency log

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

Download URL multilayer-0.0.2-py3-none-any.whl
Size 4.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d0dc16b3bcb867d373bb0892499a7c160bff413e8299905c951425829608248e
BLAKE2b-256 checksum
How to use checksums
d2081fe9f08d6e3a3e707780a3bb23a385f9a23c5904b6151bbbf6e5a8ffea54
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 29, 2026.

Transparency log

Security for multilayer 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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for multilayer-0.0.2.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 Nov 29, 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.0.2 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