A CUDA backend for Torch7