{ "info": { "author": "Hunt Zhan", "author_email": "huntzhan.dev@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7" ], "description": "=====================\npytorch-stateful-lstm\n=====================\n\n\n.. image:: https://img.shields.io/pypi/v/pytorch_stateful_lstm.svg\n :target: https://pypi.python.org/pypi/pytorch_stateful_lstm\n\n.. image:: https://img.shields.io/travis/cnt-dev/pytorch-stateful-lstm.svg\n :target: https://travis-ci.org/cnt-dev/pytorch-stateful-lstm\n\n* Free software: MIT license\n\nFeatures\n--------\n\nPytorch LSTM implementation powered by Libtorch, and with the support of:\n\n- Hidden/Cell Clip.\n- Skip Connections.\n- Variational Dropout & DropConnect.\n- Managed Initial State.\n- Built-in TBPTT.\n\nBenchmark: https://github.com/cnt-dev/pytorch-stateful-lstm/tree/master/benchmark\n\nInstall\n-------\n\nPrerequisite: `torch>=1.0.0`, supported C++11 compiler (see here_). To install through pip::\n\n pip install pytorch-stateful-lstm\n\n.. _here: https://github.com/pytorch/pytorch/blob/0bf1383f0a6caa34945feaf19191986d18205251/torch/utils/cpp_extension.py#L169-L181\n\nUsage\n-----\n\nExample::\n\n import torch\n from torch.nn.utils.rnn import pack_padded_sequence, PackedSequence\n from pytorch_stateful_lstm import StatefulUnidirectionalLstm\n\n lstm = StatefulUnidirectionalLstm(\n num_layers=2,\n input_size=3,\n hidden_size=5,\n cell_size=7,\n )\n\n inputs = pack_padded_sequence(torch.rand(4, 5, 3), [5, 4, 2, 1], batch_first=True)\n raw_packed_outputs, lstm_state = lstm(\n inputs.data,\n inputs.batch_sizes\n )\n outputs = PackedSequence(raw_packed_outputs, inputs.batch_sizes)\n\nFor the definition of parameters, see https://github.com/cnt-dev/pytorch-stateful-lstm/tree/master/extension.\n\nCredits\n-------\n\nThis package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template.\n\n.. _Cookiecutter: https://github.com/audreyr/cookiecutter\n.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage\n\n\n=======\nHistory\n=======\n\n0.1.0 (2019-01-03)\n------------------\n\n* First release on PyPI.", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/cnt-dev/pytorch-stateful-lstm", "keywords": "pytorch_stateful_lstm", "license": "MIT license", "maintainer": "", "maintainer_email": "", "name": "pytorch-stateful-lstm", "package_url": "https://pypi.org/project/pytorch-stateful-lstm/", "platform": "", "project_url": "https://pypi.org/project/pytorch-stateful-lstm/", "project_urls": { "Homepage": "https://github.com/cnt-dev/pytorch-stateful-lstm" }, "release_url": "https://pypi.org/project/pytorch-stateful-lstm/1.6.0/", "requires_dist": null, "requires_python": "", "summary": "None", "version": "1.6.0" }, "last_serial": 4928554, "releases": { "1.1.0": [ { "comment_text": "", "digests": { "md5": "95ff07a647702275802572745f2a8473", "sha256": "4bfabf98c80f22b61edbfcad57af1caa3f9ee07c7959eb9fa20bcc09685b86d6" }, "downloads": -1, "filename": "pytorch_stateful_lstm-1.1.0.tar.gz", "has_sig": false, "md5_digest": "95ff07a647702275802572745f2a8473", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15617, "upload_time": "2019-01-08T04:23:50", "url": "https://files.pythonhosted.org/packages/34/16/ed8629893e1ab6c0f25ba5b82c589c29076a518e3e6cdd446a927a891aa4/pytorch_stateful_lstm-1.1.0.tar.gz" } ], "1.1.1": [ { "comment_text": "", "digests": { "md5": "aeafbaa0dcd8836ceb996edc3bf6c3a6", "sha256": "eb21d5b862bae1baf006a1cfcf0714cdd4060459b51b03b1957dbdf3696cbb4c" }, "downloads": -1, "filename": "pytorch_stateful_lstm-1.1.1.tar.gz", "has_sig": false, "md5_digest": "aeafbaa0dcd8836ceb996edc3bf6c3a6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15355, "upload_time": "2019-01-08T08:05:37", "url": "https://files.pythonhosted.org/packages/76/70/a649e08f4909e77c668dce0b1e0d89ee3ff7a74405ff55089aaf61d4352a/pytorch_stateful_lstm-1.1.1.tar.gz" } ], "1.2.0": [ { "comment_text": "", "digests": { "md5": "90bc9396690163dae9402dbb0be17b8c", "sha256": "e234607f41d26f0da0bfb1bf2ea53d5902cafa8eb75b1cb7fad8bbfbeb6f2b69" }, "downloads": -1, "filename": "pytorch_stateful_lstm-1.2.0.tar.gz", "has_sig": false, "md5_digest": "90bc9396690163dae9402dbb0be17b8c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16166, "upload_time": "2019-01-26T09:08:09", "url": "https://files.pythonhosted.org/packages/d6/ec/3f0ad26a7f2e392f747c767f105098134dfb650ac3e4cda8a4847ab1e7b6/pytorch_stateful_lstm-1.2.0.tar.gz" } ], "1.2.1": [ { "comment_text": "", "digests": { "md5": "89f29f8fd88fb8c0c7545925c8c8f373", "sha256": "49b2dcec1369de968b36456f9ef85979f726149ab257fdc0df1ce0b57d3cebf7" }, "downloads": -1, "filename": "pytorch_stateful_lstm-1.2.1.tar.gz", "has_sig": false, "md5_digest": "89f29f8fd88fb8c0c7545925c8c8f373", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16165, "upload_time": "2019-01-28T11:57:37", "url": "https://files.pythonhosted.org/packages/38/b6/add8963ce84798aae65487c24ea031b524b48b3859ef23834bd9852fb38d/pytorch_stateful_lstm-1.2.1.tar.gz" } ], "1.3.0": [ { "comment_text": "", "digests": { "md5": "7d37780364fc72c224c74f5a9c6f3ba3", "sha256": "cbc41a7b4da75342d1541e145862a1385a22495609a1933dc1279216c7640750" }, "downloads": -1, "filename": "pytorch_stateful_lstm-1.3.0.tar.gz", "has_sig": false, "md5_digest": "7d37780364fc72c224c74f5a9c6f3ba3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16281, "upload_time": "2019-01-28T19:32:52", "url": "https://files.pythonhosted.org/packages/12/30/8c3cc67a5b1e5d4f71f3c45dd441e36a1301e134b9d2c971dff8b2607029/pytorch_stateful_lstm-1.3.0.tar.gz" } ], "1.3.1": [ { "comment_text": "", "digests": { "md5": "a41db518db740b4f67e2457080112de9", "sha256": "91336407a246e4a4c6fb3bdcd2853cf7342bf3628712f33eef8fed631564d1ff" }, "downloads": -1, "filename": "pytorch_stateful_lstm-1.3.1.tar.gz", "has_sig": false, "md5_digest": "a41db518db740b4f67e2457080112de9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16565, "upload_time": "2019-02-02T08:09:14", "url": "https://files.pythonhosted.org/packages/4d/08/2f506129e3a31dbb61c7ad282614146dfe7ba9e40f1bb59a9eab917a5e95/pytorch_stateful_lstm-1.3.1.tar.gz" } ], "1.3.2": [ { "comment_text": "", "digests": { "md5": "5b1bc7330e60c2f49469944827128736", "sha256": "5bc9450e254245ba3c436cd59c6d9a31e574a5ba57ecf234404dc3e678967c8c" }, "downloads": -1, "filename": "pytorch_stateful_lstm-1.3.2.tar.gz", "has_sig": false, "md5_digest": "5b1bc7330e60c2f49469944827128736", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16810, "upload_time": "2019-02-02T09:49:14", "url": "https://files.pythonhosted.org/packages/18/c0/5b5d849518c0d0d575514e379e20eb14559140409aa895a788caf60c874d/pytorch_stateful_lstm-1.3.2.tar.gz" } ], "1.3.3": [ { "comment_text": "", "digests": { "md5": "5380edd716ea415a176907f0b207946d", "sha256": "3717a132e5ee37b5486b783a445a71fa24f58b898d65bbf4bd76a4633d8f38e2" }, "downloads": -1, "filename": "pytorch_stateful_lstm-1.3.3.tar.gz", "has_sig": false, "md5_digest": "5380edd716ea415a176907f0b207946d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16808, "upload_time": "2019-02-02T11:29:52", "url": "https://files.pythonhosted.org/packages/a8/22/3092714209da192d23426007081313fe85a223fe06aae5184e3f76729a9d/pytorch_stateful_lstm-1.3.3.tar.gz" } ], "1.4.0": [ { "comment_text": "", "digests": { "md5": "44e94551d40c8ea11f2600e8d0a5251d", "sha256": "8a06951fd623efee35bc19e6c4dee1a060aa84f456402e6514f65c2d143ea7c8" }, "downloads": -1, "filename": "pytorch_stateful_lstm-1.4.0.tar.gz", "has_sig": false, "md5_digest": "44e94551d40c8ea11f2600e8d0a5251d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16865, "upload_time": "2019-02-03T17:51:05", "url": "https://files.pythonhosted.org/packages/0f/a9/e76019fa42644606d5d1d5411994e4ada68223e3e06ae7a317310cf52e88/pytorch_stateful_lstm-1.4.0.tar.gz" } ], "1.5.0": [ { "comment_text": "", "digests": { "md5": "646f9e75df8aa08ea4446d4b6c0ae3a3", "sha256": "56512a6c406413b43768f652e67b8c334b2f240bdaef62f1a390c0064e748e7c" }, "downloads": -1, "filename": "pytorch_stateful_lstm-1.5.0.tar.gz", "has_sig": false, "md5_digest": "646f9e75df8aa08ea4446d4b6c0ae3a3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15920, "upload_time": "2019-02-09T07:38:36", "url": "https://files.pythonhosted.org/packages/58/d7/5b8dd011f4b8140750e800983baa7ed1c226c49860747d81cf77b7022194/pytorch_stateful_lstm-1.5.0.tar.gz" } ], "1.5.1": [ { "comment_text": "", "digests": { "md5": "a00ec045fd5d8114e219dbce169d8b27", "sha256": "a5981e1bfd49365facdd813c7735845104f128642e5792114183f56fba4e97e5" }, "downloads": -1, "filename": "pytorch_stateful_lstm-1.5.1.tar.gz", "has_sig": false, "md5_digest": "a00ec045fd5d8114e219dbce169d8b27", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15919, "upload_time": "2019-02-21T05:10:40", "url": "https://files.pythonhosted.org/packages/84/03/aafe51a1584632017b0996dfd07683f9ebf80e3aed715dae5f02b6fe30f5/pytorch_stateful_lstm-1.5.1.tar.gz" } ], "1.5.2": [ { "comment_text": "", "digests": { "md5": "d1f94a3547d2c6e8f66f0c6faba94a96", "sha256": "b4835d1be62d089215a5b7eb7d5c062604090c56099d9bfeb26d791ec4582388" }, "downloads": -1, "filename": "pytorch_stateful_lstm-1.5.2.tar.gz", "has_sig": false, "md5_digest": "d1f94a3547d2c6e8f66f0c6faba94a96", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16027, "upload_time": "2019-03-04T03:53:26", "url": "https://files.pythonhosted.org/packages/e6/02/b49a3dff1b3fe741d6acf80ff1b9f0eb5c8ed4fd99ec5845d98b2560c9f7/pytorch_stateful_lstm-1.5.2.tar.gz" } ], "1.5.3": [ { "comment_text": "", "digests": { "md5": "841da5e022bfffd0d80a01db39b0b87a", "sha256": "d5136bcad00d7fbd5e5d8e8070e2cd95fb30aa3b602bd2993cdbdac67e960ff1" }, "downloads": -1, "filename": "pytorch_stateful_lstm-1.5.3.tar.gz", "has_sig": false, "md5_digest": "841da5e022bfffd0d80a01db39b0b87a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16060, "upload_time": "2019-03-05T07:47:24", "url": "https://files.pythonhosted.org/packages/7c/87/8bf46a1ccd6f0957c7ee03763eb37ecf68d0ef6d710224d64de79b141ece/pytorch_stateful_lstm-1.5.3.tar.gz" } ], "1.6.0": [ { "comment_text": "", "digests": { "md5": "b33e891a424291ee9ea758c9f54992d9", "sha256": "13b23fd6d68198489f7ded7e413ae99ca770a2e27ec1b0fcd4347f0f0408d4d4" }, "downloads": -1, "filename": "pytorch_stateful_lstm-1.6.0.tar.gz", "has_sig": false, "md5_digest": "b33e891a424291ee9ea758c9f54992d9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18642, "upload_time": "2019-03-12T05:51:49", "url": "https://files.pythonhosted.org/packages/26/98/684219d6b443dbb1cbbcea88859821a1126d4ac2b75798a9869f39eecbf5/pytorch_stateful_lstm-1.6.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b33e891a424291ee9ea758c9f54992d9", "sha256": "13b23fd6d68198489f7ded7e413ae99ca770a2e27ec1b0fcd4347f0f0408d4d4" }, "downloads": -1, "filename": "pytorch_stateful_lstm-1.6.0.tar.gz", "has_sig": false, "md5_digest": "b33e891a424291ee9ea758c9f54992d9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18642, "upload_time": "2019-03-12T05:51:49", "url": "https://files.pythonhosted.org/packages/26/98/684219d6b443dbb1cbbcea88859821a1126d4ac2b75798a9869f39eecbf5/pytorch_stateful_lstm-1.6.0.tar.gz" } ] }