Forked from google code cuda-convnet2: https://code.google.com/p/cuda-convnet2/