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

Method __init__

diffsynth/models/stepvideo_text_encoder.py:456–463  ·  view source on GitHub ↗
(
        self,
        config,
        max_seq_size=8192,
    )

Source from the content-addressed store, hash-verified

454
455class Transformer(nn.Module):
456 def __init__(
457 self,
458 config,
459 max_seq_size=8192,
460 ):
461 super().__init__()
462 self.num_layers = config.num_layers
463 self.layers = self._build_layers(config)
464
465 def _build_layers(self, config):
466 layers = torch.nn.ModuleList()

Callers

nothing calls this directly

Calls 2

_build_layersMethod · 0.95
__init__Method · 0.45

Tested by

no test coverage detected