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

Method forward

StyleGAN/net/model.py:116–121  ·  view source on GitHub ↗
(self,x,w)

Source from the content-addressed store, hash-verified

114 self.style_bias = WSLinear(w_dim,channel)
115
116 def forward(self,x,w):
117 x = self.instance_norm(x)
118 #对dim = 2和dim = 3其进行升维
119 style_scale = self.style_scale(w).unsqueeze(2).unsqueeze(3)
120 style_bias = self.style_bias(w).unsqueeze(2).unsqueeze(3)
121 return style_scale * x + style_bias
122
123
124#对应着Synthesis network的每一个block

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected