Torch is a scientific computing framework built on top of Lua[JIT]. The nn package and the ecosystem around it provide…