

def _argument_contiguity_check(self, arg_name):
    '\n        .. todo::\n\n            WRITEME\n        '
    return ('\n        if (!CudaNdarray_is_c_contiguous(%%(%(arg_name)s)s))\n        {\n            if (!(%(class_name_caps)s_COPY_NON_CONTIGUOUS)) {\n                PyErr_SetString(PyExc_ValueError,\n                    "%(class)s: %(arg_name)s must be C contiguous");\n                %%(fail)s;\n            }\n        }\n        ' % {
        'class': self.__class__.__name__,
        'arg_name': arg_name,
        'class_name_caps': arg_name.__class__.__name__.upper(),
    })

dataset/ETHPy150Open lisa-lab/pylearn2/pylearn2/sandbox/cuda_convnet/stochastic_pool.py StochasticMaxPool._argument_contiguity_check/VarMisuse@36/194 `self`->`arg_name`