Facebook's extensions to torch/cunn