# How to convert array to tensor?

**URL:** <https://discuss.pytorch.org/t/how-to-convert-array-to-tensor/28809>\
**Category:** Uncategorized\
**Created:** [November 5, 2018, 12:11pm UTC](https://discuss.pytorch.org/t/how-to-convert-array-to-tensor/28809 "2018-11-05T12:11:17Z")\
**Posts on this page:** 1\
**Showing post:** 25

<div class="post-metadata">

**Author:** ![mehran2020](https://discuss.pytorch.org/letter_avatar_proxy/v4/letter/m/43a26b/32.png) [@mehran2020](https://discuss.pytorch.org/u/mehran2020)\
**Post date:** [July 17, 2020, 5:42pm UTC](https://discuss.pytorch.org/t/how-to-convert-array-to-tensor/28809/25 "2020-07-17T17:42:09Z")

</div>

Thank you so much. This was exactly my problem. The raised error is not at all informative. It just says: Memory Error …

---

_[View the full topic](https://discuss.pytorch.org/t/how-to-convert-array-to-tensor/28809)._
