Skip to main content

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)

Uploaded Source

Built Distribution

lstm_variants-0.1.2-py3-none-any.whl (3.6 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