MCPcopy Create free account
hub / github.com/bbaaii/DreamDiffusion / LinAttnBlock

Class LinAttnBlock

code/dc_ldm/modules/diffusionmodules/model.py:144–147  ·  view source on GitHub ↗

to match AttnBlock usage

Source from the content-addressed store, hash-verified

142
143
144class 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
150class AttnBlock(nn.Module):

Callers 1

make_attnFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected