Continuing to migrate the CUDA DBN template.