(self, *args, **kwargs)
| 124 | # Override forward with modulation input |
| 125 | class BlockWithModulation(Block): |
| 126 | def __init__(self, *args, **kwargs) -> None: |
| 127 | super().__init__(*args, **kwargs) |
| 128 | |
| 129 | def forward(self, x: Tensor, mod: Tensor) -> Tensor: |
| 130 | def attn_residual_func(x: Tensor, mod: Tensor) -> Tensor: |