LoginSignup
0
1

numpy 1.25.0にて大きなサイズの行列を計算しようとするとRuntimeWarning: invalid value encountered in matmulが出る

Posted at

問題

numpyを1.25.0にアップデート後、大きなサイズの行列AとB次のように計算させようとすると、

A.T @ B

警告

RuntimeWarning: invalid value encountered in matmul

が出る。

解決法

numpyのバージョンを下げる。同様のバグを報告されている方がいて、github上で議論されていますが、具体的な解決には至っていません。
なので、numpyのバージョンを下げることで対処しました。

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1