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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 595e25c22d28cefe792872fc0331f9dd089e6ae29a9bd63a937414aea56fa1e4 |
|
MD5 | 57e85dfbbb063e94cde4c90559737354 |
|
BLAKE2b-256 | c0640d8f9d99734435744d5d0d4d8143ea41647081442888e46d5558dd09ccf7 |
File details
Details for the file torch_dataclasses-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: torch_dataclasses-0.1.2-py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.10.2 Darwin/19.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7fb086e6715bfb2c2857142d873e1c54a91e461d7f2ec11bc75ef01e5db1a464 |
|
MD5 | 64e876c67c6f6566428fed728ea787c0 |
|
BLAKE2b-256 | de99cf74a8c427cb487d9f8409373d6bb8e1ffce4e61af468fb780f3adc3ca08 |