submited by

Style Pass

>>> import numpy as np >>> arr = np.ones((1024, 1024, 1024, 3), dtype=np.uint8)

>>> import numpy as np >>> arr = np.ones((1024, 1024, 1024, 3), dtype=np.uint8)

>>> import psutil >>> psutil.Process().memory_info().rss / (1024 * 1024) 3083.734375

Read more pythonspeed....