[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

猜你喜欢

转载自www.cnblogs.com/hcbin/p/9193121.html