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.2.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

torch_dataclasses-0.1.2-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: torch_dataclasses-0.1.2.tar.gz
  • Upload date:
  • Size: 2.4 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.2.tar.gz
Algorithm Hash digest
SHA256 595e25c22d28cefe792872fc0331f9dd089e6ae29a9bd63a937414aea56fa1e4
MD5 57e85dfbbb063e94cde4c90559737354
BLAKE2b-256 c0640d8f9d99734435744d5d0d4d8143ea41647081442888e46d5558dd09ccf7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for torch_dataclasses-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7fb086e6715bfb2c2857142d873e1c54a91e461d7f2ec11bc75ef01e5db1a464
MD5 64e876c67c6f6566428fed728ea787c0
BLAKE2b-256 de99cf74a8c427cb487d9f8409373d6bb8e1ffce4e61af468fb780f3adc3ca08

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