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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lstm_variants-0.1.2-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file lstm-variants-0.1.2.tar.gz.

File metadata

  • Download URL: lstm-variants-0.1.2.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.3.1 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.6

File hashes

Hashes for lstm-variants-0.1.2.tar.gz
Algorithm Hash digest
SHA256 792c86f560103ae6ff9d5da1316bc1711c2b764a6facc761d4cca1f69fa010ea
MD5 91d807708867eeac7e246b1c9344dc4d
BLAKE2b-256 3c45ca5d005340c9bd42983838f1fe2d64309e7769551bab5fc4f5d79054cb1a

See more details on using hashes here.

File details

Details for the file lstm_variants-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: lstm_variants-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.3.1 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.6

File hashes

Hashes for lstm_variants-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ef915d7b1f68584d9847b0c3fc35a33600e8781170a98ab7d0f583e9c4d330ab
MD5 363415381c52487d2a4f7771f5751597
BLAKE2b-256 e3f662c554cac6381322f814a2483077ee5f307a4167b6a9d65e52e78c734198

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page