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

Method forward

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

Source from the content-addressed store, hash-verified

448 self.dwc = nn.Conv2d(self.dim2, self.dim2, 3, 1, 1, groups=self.dim2)
449
450 def forward(self, x):
451
452 x = self.linear1(x)
453 x = self.drop1(x)
454 x = x + self.dwc(x)
455 x = self.act(x)
456 # x = self.bn(x)
457 x = self.linear2(x)
458 x = self.drop2(x)
459
460 return x

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected