(self, mean: float = 0.0, std: float = 0.1)
| 80 | |
| 81 | class GaussianNoise: |
| 82 | def __init__(self, mean: float = 0.0, std: float = 0.1): |
| 83 | self.mean = mean |
| 84 | self.std = std |
| 85 | |
| 86 | def __call__(self, tensor): |
| 87 | return tensor + torch.randn(tensor.size()) * self.std + self.mean |
nothing calls this directly
no outgoing calls
no test coverage detected