[Torch]提示torch.inverse錯誤

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

 

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

是由於缺乏OpenBLAS,安裝上便可github

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
相關文章
相關標籤/搜索