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

Method __init__

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

Source from the content-addressed store, hash-verified

520
521class NeighborhoodTransformerLayer(nn.Module):
522 def __init__(self, d_model, d_ff, d_head, cond_features, kernel_size, dropout=0.0):
523 super().__init__()
524 self.self_attn = NeighborhoodSelfAttentionBlock(d_model, d_head, cond_features, kernel_size, dropout=dropout)
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)

Callers

nothing calls this directly

Calls 3

FeedForwardBlockClass · 0.85
__init__Method · 0.45

Tested by

no test coverage detected