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

Method __init__

k_diffusion/models/modules.py:546–548  ·  view source on GitHub ↗
(self, d_model, d_ff, cond_features, dropout=0.0)

Source from the content-addressed store, hash-verified

544
545class NoAttentionTransformerLayer(nn.Module):
546 def __init__(self, d_model, d_ff, cond_features, dropout=0.0):
547 super().__init__()
548 self.ff = FeedForwardBlock(d_model, d_ff, cond_features, dropout=dropout)
549
550 def forward(self, x, pos, cond):
551 x = checkpoint(self.ff, x, cond)

Callers

nothing calls this directly

Calls 2

FeedForwardBlockClass · 0.85
__init__Method · 0.45

Tested by

no test coverage detected