trying to port cuda-convnet