# How to do long short term memory with pennylane

**URL:** <https://discuss.pennylane.ai/t/how-to-do-long-short-term-memory-with-pennylane/2099>\
**Category:** PennyLane Help\
**Created:** [August 12, 2022, 6:57am UTC](https://discuss.pennylane.ai/t/how-to-do-long-short-term-memory-with-pennylane/2099 "2022-08-12T06:57:16Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![isaacdevlugt](https://yyz2.discourse-cdn.com/flex012/user_avatar/discuss.pennylane.ai/isaacdevlugt/32/1159_2.png) [@isaacdevlugt](https://discuss.pennylane.ai/u/isaacdevlugt)\
**Post date:** [July 29, 2024, 10:10pm UTC](https://discuss.pennylane.ai/t/how-to-do-long-short-term-memory-with-pennylane/2099/9 "2024-07-29T22:10:28Z")

</div>

Hey @Siva_Karthikeya!

It would help if we could reduce your code down to something more manageable that still produces the discrepancy you’re observing 🙏. In the mean time, I recommend checking out our documentation for `TorchLayer` (see Usage Details): [qml.qnn.TorchLayer — PennyLane 0.37.0 documentation](https://docs.pennylane.ai/en/stable/code/api/pennylane.qnn.TorchLayer.html)

Under “Usage Details”, there’s a section about model saving. Let me know if that helps!

---

_[View the full topic](https://discuss.pennylane.ai/t/how-to-do-long-short-term-memory-with-pennylane/2099)._
