MCPcopy Create free account
hub / github.com/thygate/stable-diffusion-webui-depthmap-script / forward

Method forward

lib/Resnext_torch.py:51–67  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

49 self.stride = stride
50
51 def forward(self, x):
52 identity = x
53
54 out = self.conv1(x)
55 out = self.bn1(out)
56 out = self.relu(out)
57
58 out = self.conv2(out)
59 out = self.bn2(out)
60
61 if self.downsample is not None:
62 identity = self.downsample(x)
63
64 out += identity
65 out = self.relu(out)
66
67 return out
68
69
70class Bottleneck(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected