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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
53184d49bf0fd4dad34ec1e78a622438c9ec28a8d59100d810af47e2b721e99a
|
|
| MD5 |
51705e17f40594de19fe4d7d69e297cf
|
|
| BLAKE2b-256 |
ec9503d4d0be2311d07e9c891c3ace45f692fd5dc011490dbea899c85c57b0ae
|
File details
Details for the file torch_dataclasses-0.1.1-py3-none-any.whl.
File metadata
- Download URL: torch_dataclasses-0.1.1-py3-none-any.whl
- Upload date:
- Size: 1.8 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 |
2e1289bd632cfce7aaa259ff3f8c0e6a6150bb44591c55b287178b2021629913
|
|
| MD5 |
272e428d188621f43f1fa0997d3a1c40
|
|
| BLAKE2b-256 |
af60783a174e951fc0f8bd491bcdd43af0b064e218b8856d5e33ac562d6e862d
|