to match AttnBlock usage
| 142 | |
| 143 | |
| 144 | class LinAttnBlock(LinearAttention): |
| 145 | """to match AttnBlock usage""" |
| 146 | def __init__(self, in_channels): |
| 147 | super().__init__(dim=in_channels, heads=1, dim_head=in_channels) |
| 148 | |
| 149 | |
| 150 | class AttnBlock(nn.Module): |