MCPcopy Create free account
hub / github.com/KeepTryingTo/Pytorch-GAN / forward

Method forward

ProGAN/model.py:70–71  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

68 self.epsilon = 1e-8
69
70 def forward(self, x):
71 return x / torch.sqrt(torch.mean(x ** 2, dim=1, keepdim=True) + self.epsilon)
72
73
74class ConvBlock(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected