Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/KeepTryingTo/Pytorch-GAN
/ __init__
Method
__init__
ProGAN/model.py:66–68 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
64
65
class
PixelNorm(nn.Module):
66
def
__init__(self):
67
super(PixelNorm, self).__init__()
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)
Callers
nothing calls this directly
Calls
1
__init__
Method · 0.45
Tested by
no test coverage detected