add grad method to gpu_contiguous
Merge pull request #1196 from goodfeli/grad

grad method for GpuContiguous