Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
做 A 点 B 的任何想法,没有内存错误?
结果将是一个 250000x250000 矩阵,并且需要大约半 TB 的 RAM。
你的意思是numpy.dot(B, A)?
numpy.dot(B, A)
您尝试计算的点积会生成一个 250000x250000 数组,如果您使用默认的双精度浮点数,这将需要500Gb的内存。你确定这是你需要的吗?