MCPcopy Create free account
hub / github.com/Meshcapade/difflocks / forward

Method forward

k_diffusion/models/modules.py:539–542  ·  view source on GitHub ↗
(self, x, pos, cond)

Source from the content-addressed store, hash-verified

537 self.ff = FeedForwardBlock(d_model, d_ff, cond_features, dropout=dropout)
538
539 def forward(self, x, pos, cond):
540 x = checkpoint(self.self_attn, x, pos, cond)
541 x = checkpoint(self.ff, x, cond)
542 return x
543
544
545class NoAttentionTransformerLayer(nn.Module):

Callers

nothing calls this directly

Calls 1

checkpointFunction · 0.85

Tested by

no test coverage detected