Source code for gpytorch.means.zero_mean

#!/usr/bin/env python3

import torch

from .mean import Mean


[docs]class ZeroMean(Mean): def forward(self, input): return torch.zeros(input.shape[:-1], dtype=input.dtype, device=input.device)