Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
71 views
in Technique[技术] by (71.8m points)

python - problem with allocating memory for scipy ndarray

I am trying to generate a ndarray of audio file frequencies using the scipy.signal.stft() function and it randomly crashes half the time. When it crashes it raises the Exception: numpy.core._exceptions.MemoryError: Unable to allocate 257. MiB for an array with shape (32842, 513) and data type complex128, how do I free up memory for such a large array? Or is there any other solution?

here is my code

question from:https://stackoverflow.com/questions/65946522/problem-with-allocating-memory-for-scipy-ndarray

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...