Skip to main content

dataclass + nn.Module

Project description

DataclassModule

dataclass + nn.Module

Usage

from dataclassmodule import DataclassModule

class ExampleModule(DataclassModule):
    x: int
    
    def __post_init__(self):
        self.layer = nn.Linear(2, 2)

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

DataclassModule-0.1.1.tar.gz (1.4 kB view details)

Uploaded Source

Built Distribution

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

DataclassModule-0.1.1-py3-none-any.whl (1.7 kB view details)

Uploaded Python 3

File details

Details for the file DataclassModule-0.1.1.tar.gz.

File metadata

  • Download URL: DataclassModule-0.1.1.tar.gz
  • Upload date:
  • Size: 1.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.7.8 Darwin/19.6.0

File hashes

Hashes for DataclassModule-0.1.1.tar.gz
Algorithm Hash digest
SHA256 fe20ceb0f0d0f7593eab3dfccac7efc15e2611683d482d2f4b7d646231966d69
MD5 a6a922872323faec7f5659b49963c5b5
BLAKE2b-256 2946ac8b6fa5102c7abe584ea9480cdcfd0b752caeba5200410b130a2a2608ea

See more details on using hashes here.

File details

Details for the file DataclassModule-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: DataclassModule-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 1.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.7.8 Darwin/19.6.0

File hashes

Hashes for DataclassModule-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a9443479daca1ebbd1f174e925af6c88b1416272fe0d13e9d8612d41f1653601
MD5 ca82e8a020f1ab44f45aa170631bea0e
BLAKE2b-256 33022299ea102c85343df218347677a5a3ab981dd102470de4f75dbf7b0119e2

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