Long-Short Term Memory variants
Project description
LSTM Variants
Install:pip install rnn-classifiers
from lstm_variants import LightweightLSTM
import torch
module = LightweightLSTM(input_size=5, hidden_size=32, batch_first=True)
batch_size, seq_len, input_size = 8, 35, 5
x = torch.rand(size=(batch_size, seq_len, input_size))
output, (h_t, c_t) = module(x)
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
lstm-variants-0.1.2.tar.gz
(2.1 kB
view hashes)
Built Distribution
Close
Hashes for lstm_variants-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef915d7b1f68584d9847b0c3fc35a33600e8781170a98ab7d0f583e9c4d330ab |
|
MD5 | 363415381c52487d2a4f7771f5751597 |
|
BLAKE2b-256 | e3f662c554cac6381322f814a2483077ee5f307a4167b6a9d65e52e78c734198 |