[Torch]提示torch.inverse错误

来源: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

 

posted @ 2018-06-17 16:22  炎峰森林影  阅读(669)  评论(0编辑  收藏  举报