In the source code of sklearn.gaussian_process.kernels.DotProduct, the function is defined as:
sklearn.gaussian_process.kernels.DotProduct
# line 2049 K = np.inner(X, Y) + self.sigma_0 ** 2