Skip to main content

nn.linear with initialization created by nxdens

Project description

linearinit

codecov CI

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


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)

Uploaded Source

Built Distribution

linearinit-0.2.0-py3-none-any.whl (4.0 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