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

Method forward

diffsynth/models/kolors_text_encoder.py:342–348  ·  view source on GitHub ↗
(self, prefix: torch.Tensor)

Source from the content-addressed store, hash-verified

340 config.num_layers * config.kv_channels * config.multi_query_group_num * 2)
341
342 def forward(self, prefix: torch.Tensor):
343 if self.prefix_projection:
344 prefix_tokens = self.embedding(prefix)
345 past_key_values = self.trans(prefix_tokens)
346 else:
347 past_key_values = self.embedding(prefix)
348 return past_key_values
349
350
351def split_tensor_along_last_dim(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected