MCPcopy Create free account
hub / github.com/geekcomputers/Python / __call__

Method __call__

ML/src/python/neuralforge/data/transforms.py:86–87  ·  view source on GitHub ↗
(self, tensor)

Source from the content-addressed store, hash-verified

84 self.std = std
85
86 def __call__(self, tensor):
87 return tensor + torch.randn(tensor.size()) * self.std + self.mean
88
89class RandomGaussianBlur:
90 def __init__(self, kernel_size: int = 5, sigma: Tuple[float, float] = (0.1, 2.0)):

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.80

Tested by

no test coverage detected