MCPcopy Create free account
hub / github.com/AMAP-ML/EMF / __init__

Method __init__

sana_transformer.py:86–88  ·  view source on GitHub ↗
(self, dim: int, elementwise_affine: bool = False, eps: float = 1e-6)

Source from the content-addressed store, hash-verified

84
85class SanaModulatedNorm(nn.Module):
86 def __init__(self, dim: int, elementwise_affine: bool = False, eps: float = 1e-6):
87 super().__init__()
88 self.norm = nn.LayerNorm(dim, elementwise_affine=elementwise_affine, eps=eps)
89
90 def forward(
91 self, hidden_states: torch.Tensor, temb: torch.Tensor, scale_shift_table: torch.Tensor

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected