Method
__init__
(self, dim: int, elementwise_affine: bool = False, eps: float = 1e-6)
Source from the content-addressed store, hash-verified
| 84 | |
| 85 | class 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
Tested by
no test coverage detected