如何测试 Torch 安装?

How can I test a Torch installation?

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