Temporary buffers for unfolding (for CUDA version)

(as added by @soumith)