MCPcopy Create free account
hub / github.com/QWTforGithub/T2LDM / forward

Method forward

timm/models/dla.py:65–79  ·  view source on GitHub ↗
(self, x, shortcut=None)

Source from the content-addressed store, hash-verified

63 self.stride = stride
64
65 def forward(self, x, shortcut=None):
66 if shortcut is None:
67 shortcut = x
68
69 out = self.conv1(x)
70 out = self.bn1(out)
71 out = self.relu(out)
72
73 out = self.conv2(out)
74 out = self.bn2(out)
75
76 out += shortcut
77 out = self.relu(out)
78
79 return out
80
81
82class DlaBottleneck(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected