Memory Error when numpy.dot(A,B), where A is 250000x108 float matrix, B is transpose of A

StackOverflow https://stackoverflow.com/questions/7914816

  •  14-02-2021
  •  | 
  •  

문제

Any idea of do A dot B, without Memroy Error?

도움이 되었습니까?

해결책

The result would be a 250000x250000 matrix, and would require about half a terabyte of RAM.

Did you mean numpy.dot(B, A)?

다른 팁

The dot product you are trying to calculate produces a 250000x250000 array, which will require 500Gb of memory if you are using the default double precision floating point. Are you sure that is what you need?

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top