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

Method forward

lib/Resnet.py:36–52  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

34 self.stride = stride
35
36 def forward(self, x):
37 residual = x
38
39 out = self.conv1(x)
40 out = self.bn1(out)
41 out = self.relu(out)
42
43 out = self.conv2(out)
44 out = self.bn2(out)
45
46 if self.downsample is not None:
47 residual = self.downsample(x)
48
49 out += residual
50 out = self.relu(out)
51
52 return out
53
54
55class Bottleneck(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected