Skip to main content

PyTorch layer building tools for CREYONE

Project description

creyone_layer (Beta Package for CreYoNe)

Create Your Network (a.k.a. CreYoNe) is a utility tools for making DNN module via torch. This repository provides Layer-sized building blocks for deep learning.

Installation

pip install creyone-layer

From source:

git clone https://github.com/qnilix/creyone_layer.git
cd creyone_layer
pip install -e .

Quick Start

Layer registry — create_layer

from creyone_layer import create_layer

relu = create_layer('relu', 'act')(inplace=True)()
bn   = create_layer('batch', 'norm')(dim=2, eps=1e-5, mom=0.1)(64)
conv = create_layer('base',  'conv')(dim=2, optional='ap')(32, 64, 3)
pool = create_layer('max',   'pool')(dim=2, optional='ap')(2)

Registered Layers

Family Names
conv base, depthwise
norm batch, layer
act relu, relu6, gelu, quickgelu, sigmoid, silu, hardsig, hardswish, swisheff
pool max, avg

conv options (passed via optional='...', +-separated)

Flag Effect
ap auto-pad — output spatial size matches input
dw depthwise — groups = in_channels
grid stride = kernel size (grid-like sampling)
ar AutoReshape — accepts (B, H*W, C) token sequences

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

creyone_layer-1.0.5.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.

creyone_layer-1.0.5-py3-none-any.whl (13.9 kB view details)

Uploaded Python 3

File details

Details for the file creyone_layer-1.0.5.tar.gz.

File metadata

  • Download URL: creyone_layer-1.0.5.tar.gz
  • Upload date:
  • Size: 11.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for creyone_layer-1.0.5.tar.gz
Algorithm Hash digest
SHA256 dc2eb3655b866921e87e4b37e081e8362d9bc86f9621cee43e30206f676aa222
MD5 f1a197dc5b322d0d309254d9e2c9e4d2
BLAKE2b-256 579af9fa9797948d7d0a6d1bbcedf3aaf9249d7f9d797c0c825aa8c03af61252

See more details on using hashes here.

Provenance

The following attestation bundles were made for creyone_layer-1.0.5.tar.gz:

Publisher: publish.yml on qnilix/creyone_layer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file creyone_layer-1.0.5-py3-none-any.whl.

File metadata

  • Download URL: creyone_layer-1.0.5-py3-none-any.whl
  • Upload date:
  • Size: 13.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for creyone_layer-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 2ff55bb8a19013d6a3976ef00116fae2395d6a8f0cacb8e403a6b6a19831a8c5
MD5 c541cc515ee6087494268b0b63ff1ce1
BLAKE2b-256 e1e8091c107a09ce45ad3945ead87b29075ca1b45fd2bf7313d7cf00ebb8088d

See more details on using hashes here.

Provenance

The following attestation bundles were made for creyone_layer-1.0.5-py3-none-any.whl:

Publisher: publish.yml on qnilix/creyone_layer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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