def nv_matrix_create(arg_name):
    return """
    {
    NVMatrix nv_%(arg_name)s(%%(%(arg_name)s)s,
                  %(arg_name)s_dims[0] * %(arg_name)s_dims[1] *
                  %(arg_name)s_dims[2], %(arg_name)s_dims[3],
                  "%%(class_name)s:nv_%(arg_name)s");
    """ % locals()
dataset/ETHPy150Open lisa-lab/pylearn2/pylearn2/sandbox/cuda_convnet/code_templates.py/nv_matrix_create/original