代码拉取完成,页面将自动刷新
set -e
LUA=$(which luajit lua | head -n 1)
if [ ! -x "$LUA" ]
then
echo "Neither luajit nor lua found in path"
exit 1
fi
echo "Using Lua at:"
echo "$LUA"
#smoke tests
$LUA -lpaths -e "print('paths loaded succesfully')"
$LUA -ltorch -e "print('torch loaded succesfully')"
$LUA -lenv -e "print('env loaded succesfully')"
$LUA -ltrepl -e "print('trepl loaded succesfully')"
$LUA -ldok -e "print('dok loaded succesfully')"
$LUA -limage -e "print('image loaded succesfully')"
$LUA -lcwrap -e "print('cwrap loaded succesfully')"
$LUA -lgnuplot -e "print('gnuplot loaded succesfully')"
$LUA -loptim -e "print('optim loaded succesfully')"
$LUA -lsys -e "print('sys loaded succesfully')"
$LUA -lxlua -e "print('x$(basename $LUA) loaded succesfully')"
$LUA -largcheck -e "print('argcheck loaded succesfully')"
$LUA -lgraph -e "print('graph loaded succesfully')"
$LUA -lnn -e "print('nn loaded succesfully')"
$LUA -lnngraph -e "print('nngraph loaded succesfully')"
$LUA -lnnx -e "print('nnx loaded succesfully')"
$LUA -lthreads -e "print('threads loaded succesfully')"
th -ltorch -e "torch.test()"
th -lnn -e "nn.test()"
if [ $(basename $LUA) = "luajit" ]
then
$LUA -lsundown -e "print('sundown loaded succesfully')"
fi
if `$LUA -lcutorch -e ""`
then
$LUA -lcutorch -e "print('cutorch loaded succesfully')"
$LUA -lcunn -e "print('cunn loaded succesfully')"
if [ $(basename $LUA) = "luajit" ];
then
$LUA -lcudnn -e "print('cudnn loaded succesfully')"
fi
th -lcutorch -e "cutorch.test()"
th -lcunn -e "nn.testcuda()"
else
echo "CUDA not found"
fi
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。