Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenGVLab/DragGAN
/ forward
Method
forward
draggan/deprecated/stylegan2/model.py:33–34 ·
view source on GitHub ↗
(self, input)
Source
from the content-addressed store, hash-verified
31
super().__init__()
32
33
def
forward(self, input):
34
return
input * torch.rsqrt(torch.mean(input ** 2, dim=1, keepdim=True) + 1e-8)
35
36
37
def
make_kernel(k):
Callers
nothing calls this directly
Calls
1
mean
Method · 0.80
Tested by
no test coverage detected