MCPcopy Create free account
hub / github.com/Monalissaa/DisenDiff / forward

Method forward

src/gaussian_smoothing.py:63–71  ·  view source on GitHub ↗

Apply gaussian filter to input. Arguments: input (torch.Tensor): Input to apply gaussian filter on. Returns: filtered (torch.Tensor): Filtered output.

(self, input)

Source from the content-addressed store, hash-verified

61 )
62
63 def forward(self, input):
64 """
65 Apply gaussian filter to input.
66 Arguments:
67 input (torch.Tensor): Input to apply gaussian filter on.
68 Returns:
69 filtered (torch.Tensor): Filtered output.
70 """
71 return self.conv(input, weight=self.weight.to(input.dtype), groups=self.groups)
72
73
74class AverageSmoothing(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected