MCPcopy Create free account
hub / github.com/deepbrainai-research/float / forward

Method forward

models/float/styledecoder.py:167–175  ·  view source on GitHub ↗
(self, input)

Source from the content-addressed store, hash-verified

165 self.lr_mul = lr_mul
166
167 def forward(self, input):
168
169 if self.activation:
170 out = F.linear(input, self.weight * self.scale)
171 out = fused_leaky_relu(out, self.bias * self.lr_mul)
172 else:
173 out = F.linear(input, self.weight * self.scale, bias=self.bias * self.lr_mul)
174
175 return out
176
177 def __repr__(self):
178 return (f'{self.__class__.__name__}({self.weight.shape[1]}, {self.weight.shape[0]})')

Callers

nothing calls this directly

Calls 1

fused_leaky_reluFunction · 0.70

Tested by

no test coverage detected