如何测试Torch安装



我在Linux上安装了Torch 7。如何测试安装?

例如,对于Theano,我会在shell中运行nosetests theano或在Python解释器中运行import theano; theano.test()来测试它。

th -ltorch -e "torch.test()"
th -lnn    -e "nn.test()"

https://github.com/torch/distro/blob/master/test.sh#L33-L34

最新更新