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 hashes)
Built Distribution
Close
Hashes for linearinit-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e2093ac29350c322f8b66df5a2095a734ce0e29d6e5522e5a9da6481cfce597 |
|
MD5 | c9cb22a71ca73a92c15acaeb2472ec07 |
|
BLAKE2b-256 | 02884be22fffcfc0277603176bee935c2ace2e6eda684ffac2c1fd8dd17c174f |