MCPcopy Create free account
hub / github.com/LeapLabTHU/DAT / forward

Method forward

models/dat_blocks.py:420–424  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

418 self.norm = nn.LayerNorm(dim)
419
420 def forward(self, x):
421
422 x = einops.rearrange(x, 'b c h w -> b h w c')
423 x = self.norm(x)
424 return einops.rearrange(x, 'b h w c -> b c h w')
425
426
427class TransformerMLPWithConv(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected