我在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