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

torch_dataclasses-0.1.1.tar.gz (1.5 kB view details)

Uploaded Source

Built Distribution

torch_dataclasses-0.1.1-py3-none-any.whl (1.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: torch_dataclasses-0.1.1.tar.gz
  • Upload date:
  • Size: 1.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.10.2 Darwin/19.6.0

File hashes

Hashes for torch_dataclasses-0.1.1.tar.gz
Algorithm Hash digest
SHA256 53184d49bf0fd4dad34ec1e78a622438c9ec28a8d59100d810af47e2b721e99a
MD5 51705e17f40594de19fe4d7d69e297cf
BLAKE2b-256 ec9503d4d0be2311d07e9c891c3ace45f692fd5dc011490dbea899c85c57b0ae

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for torch_dataclasses-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2e1289bd632cfce7aaa259ff3f8c0e6a6150bb44591c55b287178b2021629913
MD5 272e428d188621f43f1fa0997d3a1c40
BLAKE2b-256 af60783a174e951fc0f8bd491bcdd43af0b064e218b8856d5e33ac562d6e862d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page