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

Method forward

k_diffusion/models/modules.py:604–607  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

602 self.proj = apply_wd(Linear(in_features * self.h * self.w, out_features, bias=False))
603
604 def forward(self, x):
605 x = rearrange(x, "... (h nh) (w nw) e -> ... h w (nh nw e)", nh=self.h, nw=self.w)
606 x=self.proj(x)
607 return x
608
609class TokenSplitWithoutSkip(nn.Module):
610 def __init__(self, in_features, out_features, patch_size=(2, 2)):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected