R
R
RuslanUC2022-01-17 20:36:51
Python
RuslanUC, 2022-01-17 20:36:51

PyTorch runs out of memory in termux, although everything is fine on the PC. What to do?

Hello. I'm trying to run pix2pix in termux, namely termux-ubuntu . But after some time, termux crashes. Through the ps command, I monitored the memory used, almost always the use of termux does not exceed 1.4GB. But at some point the memory usage becomes 4.56gb (only 3gb on the phone) and a second later termux crashes. On the PC, I monitored memory usage in various ways (both through the tasklist command, and through the memory-profiler module , and a few more ways.), But it does not use more than 1.6GB.

How is it possible that on a PC one memory usage, and on android another, although the code is the same? And how can this problem be solved?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
MikaelSargsyanML, 2022-01-17
@MikaelSargsyanML

Android apps crash due to outdated OS version. The program cache was unpacked to the wrong device memory directory.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question