1. 程式人生 > >[Torch]提示torch.inverse錯誤

[Torch]提示torch.inverse錯誤

安裝 github ref .com lib clu KS log nbsp

來源:https://blog.csdn.net/zziahgf/article/details/72548128

當執行官方第二個例子時,提示xs = torch.inverse(A)*b錯誤

是因為缺少OpenBLAS,安裝上即可

git clone https://github.com/xianyi/OpenBLAS.git
cd OpenBLAS
make NO_AFFINITY=1 USE_OPENMP=1
sudo make install
CMAKE_LIBRARY_PATH=/opt/OpenBLAS/include:/opt/OpenBLAS/lib:$CMAKE_LIBRARY_PATH luarocks install torch

[Torch]提示torch.inverse錯誤