Trax Extra Activation Functions
Extra activation functions for Trax
pip install trax-extra-activation
How to use
You can use activation functions in the same way as that ones implemented in Trax.
from trax_extra_activation import TanhExp
model = tl.Serial(
tl.Embedding(vocab_size=8192, d_feature=256),
tl.Mean(axis=1),
tl.Dense(2),
TanhExp()
)
Activations
- HardShrink
HardShrink(lmbda: float = 0.5) -> PureLayer
- HardSwish
HardSwish() -> PureLayer
- LogSigmoid
LogSigmoid() -> PureLayer
- Relu6
Relu6() -> PureLayer
- Celu
Celu(a: float = 1.0) -> PureLayer
- Silu
Silu() -> PureLayer
- Mish
Mish() -> PureLayer
- SoftShrink
SoftShrink(lmbda: float = 0.5) -> PureLayer
- SoftSign
SoftSign() -> PureLayer
- TanhShrink
TanhShrink() -> PureLayer
- TanhExp
TanhExp() -> PureLayer
Metadata
Release files for trax-extra-activation 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| trax-extra-activation-0.0.2.tar.gz | 2.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| trax_extra_activation-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.3 kB
Release files / trax-extra-activation-0.0.2.tar.gz
| Download URL | trax-extra-activation-0.0.2.tar.gz |
|---|---|
| Size | 2.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fd08352da2b0fed3799abb495488cca1ac1eef19543d3964ca3b5ded72676a4f
|
|
BLAKE2b-256 checksum How to use checksums |
a43fd909845f1c07f1c37152dfe8e3c194cf6ce687065d8e2ca31661c5d42f73
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.7 CPython/3.9.5 Linux/5.8.0-1033-azure
|
Release files / trax_extra_activation-0.0.2-py3-none-any.whl
| Download URL | trax_extra_activation-0.0.2-py3-none-any.whl |
|---|---|
| Size | 2.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fa9e625d72dc4f1185e8a8675c4d145bc0e89288eea5275bfe78e7b2aa461469
|
|
BLAKE2b-256 checksum How to use checksums |
4dddf4309b675535762b31ce78b32314efcb14c27fdc71b062b9873686a0b330
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.7 CPython/3.9.5 Linux/5.8.0-1033-azure
|