Utilities for Alex Krizhevsky's cuda-convnet