def __init__(self, input_dim, active_dims, name, useGPU=False, *a, **kw):
        super(Kern, self).__init__(name=name, *a, **kw)
        self.input_dim = int(input_dim)

        if active_dims is None:
            active_dims = np.arange(input_dim)

        self.active_dims = np.asarray(active_dims, np.int_)

        self._all_dims_active = np.atleast_1d(self.active_dims).astype(int)

        assert self.active_dims.size == self.input_dim, "input_dim={} does not match len(active_dim)={}".format(self.input_dim, self._all_dims_active.size)

        self._sliced_X = 0
        self.useGPU = self._support_GPU and useGPU

        from .psi_comp import PSICOMP_GH
        self.psicomp = PSICOMP_GH()
The base class for a kernel: a positive definite function
dataset/ETHPy150Open SheffieldML/GPy/GPy/kern/src/kern.py/Kern.__init__