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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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