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

Method forward

sat/sgm/modules/diffusionmodules/model.py:168–172  ·  view source on GitHub ↗
(self, x, **kwargs)

Source from the content-addressed store, hash-verified

166 return rearrange(h_, "b 1 (h w) c -> b c h w", h=h, w=w, c=c, b=b)
167
168 def forward(self, x, **kwargs):
169 h_ = x
170 h_ = self.attention(h_)
171 h_ = self.proj_out(h_)
172 return x + h_
173
174
175class MemoryEfficientAttnBlock(nn.Module):

Callers

nothing calls this directly

Calls 1

attentionMethod · 0.95

Tested by

no test coverage detected