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

Method forward

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

Source from the content-addressed store, hash-verified

525 self.ff = FeedForwardBlock(d_model, d_ff, cond_features, dropout=dropout)
526
527 def forward(self, x, pos, cond):
528 x = checkpoint(self.self_attn, x, pos, cond)
529 x = checkpoint(self.ff, x, cond)
530 return x
531
532class ShiftedWindowTransformerLayer(nn.Module):
533 def __init__(self, d_model, d_ff, d_head, cond_features, window_size, index, dropout=0.0):

Callers

nothing calls this directly

Calls 1

checkpointFunction · 0.85

Tested by

no test coverage detected