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

Method __init__

code/dc_ldm/modules/diffusionmodules/model.py:146–147  ·  view source on GitHub ↗
(self, in_channels)

Source from the content-addressed store, hash-verified

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

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected