MCPcopy Create free account
hub / github.com/OpenImagingLab/FlashVSR / forward

Method forward

diffsynth/models/kolors_text_encoder.py:180–184  ·  view source on GitHub ↗
(self, input)

Source from the content-addressed store, hash-verified

178 self.bias = Parameter(bias.to(device), requires_grad=False) if bias is not None else None
179
180 def forward(self, input):
181 output = W8A16Linear.apply(input, self.weight, self.weight_scale, self.weight_bit_width)
182 if self.bias is not None:
183 output = output + self.bias
184 return output
185
186
187def quantize(model, weight_bit_width, empty_init=False, device=None):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected