How to convert array to tensor?

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