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

Method __init__

diffsynth/models/stepvideo_dit.py:571–574  ·  view source on GitHub ↗
(self, dim_in: int, dim_out: int, approximate: str = "none", bias: bool = True)

Source from the content-addressed store, hash-verified

569 """
570
571 def __init__(self, dim_in: int, dim_out: int, approximate: str = "none", bias: bool = True):
572 super().__init__()
573 self.proj = nn.Linear(dim_in, dim_out, bias=bias)
574 self.approximate = approximate
575
576 def gelu(self, gate: torch.Tensor) -> torch.Tensor:
577 return torch.nn.functional.gelu(gate, approximate=self.approximate)

Callers 15

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected