nn.linear with initialization created by nxdens
Project description
linearinit
Creates an Fully connect network from nn.linear layers with a given activation. The layer is initialized based on the activation function chosen.
Install it from PyPI
pip install linearinit
Usage
from linearinit.base import FullyConnectedLayers
from linearinit.base import LinearWithInit
fcn = FullyConnectedLayers(layer_sizes=[1, 2, 3], activation=nn.LeakyReLU(), bias=True)
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
linearinit-0.2.0.tar.gz
(4.6 kB
view details)
Built Distribution
File details
Details for the file linearinit-0.2.0.tar.gz
.
File metadata
- Download URL: linearinit-0.2.0.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 350f2fb48a85614e2e55211fd63af440ed3e40345ebcb75487f97f29a26bea48 |
|
MD5 | 0d636b98734ede362d7131c241ee214b |
|
BLAKE2b-256 | 3a4a506ae2bd4212c9d40cb18c61b77146c651d600a135f3b38449857554b11d |
File details
Details for the file linearinit-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: linearinit-0.2.0-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e2093ac29350c322f8b66df5a2095a734ce0e29d6e5522e5a9da6481cfce597 |
|
MD5 | c9cb22a71ca73a92c15acaeb2472ec07 |
|
BLAKE2b-256 | 02884be22fffcfc0277603176bee935c2ace2e6eda684ffac2c1fd8dd17c174f |