MCPcopy Create free account
hub / github.com/OpenGVLab/DragGAN / forward

Method forward

draggan/deprecated/stylegan2/model.py:166–176  ·  view source on GitHub ↗
(self, input)

Source from the content-addressed store, hash-verified

164 self.lr_mul = lr_mul
165
166 def forward(self, input):
167 if self.activation:
168 out = F.linear(input, self.weight * self.scale)
169 out = fused_leaky_relu(out, self.bias * self.lr_mul)
170
171 else:
172 out = F.linear(
173 input, self.weight * self.scale, bias=self.bias * self.lr_mul
174 )
175
176 return out
177
178 def __repr__(self):
179 return (

Callers

nothing calls this directly

Calls 1

fused_leaky_reluFunction · 0.85

Tested by

no test coverage detected