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

Method forward

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

Source from the content-addressed store, hash-verified

615 nn.init.zeros_(self.proj.weight)
616
617 def forward(self, x):
618 x = self.proj(x)
619 return rearrange(x, "... h w (nh nw e) -> ... (h nh) (w nw) e", nh=self.h, nw=self.w)
620
621class TokenSplit(nn.Module):
622 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