MCPcopy Create free account
hub / github.com/OpenDriveLab/ReSim / LinAttnBlock

Class LinAttnBlock

sat/sgm/modules/diffusionmodules/model.py:137–141  ·  view source on GitHub ↗

to match AttnBlock usage

Source from the content-addressed store, hash-verified

135
136
137class LinAttnBlock(LinearAttention):
138 """to match AttnBlock usage"""
139
140 def __init__(self, in_channels):
141 super().__init__(dim=in_channels, heads=1, dim_head=in_channels)
142
143
144class AttnBlock(nn.Module):

Callers 1

make_attnFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected