a = torch.fromNumpyArray(getImage)
require('nn')
n = nn.SpatialConvolution(1, 16, 12, 12)
res = n._forward(a)
print(res._size())
output = res.asNumpyArray()
How to quickly convert a returned Python-in-Lua numpy array into a Lua Torch Tensor?