MCPcopy Create free account
hub / github.com/AtlasAnalyticsLab/AdaFisher / forward

Method forward

Image_Classification/src/models/resnet.py:70–86  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

68 self.stride = stride
69
70 def forward(self, x):
71 identity = x
72
73 out = self.conv1(x)
74 out = self.bn1(out)
75 out = self.relu(out)
76
77 out = self.conv2(out)
78 out = self.bn2(out)
79
80 if self.downsample is not None:
81 identity = self.downsample(x)
82
83 out = out + identity
84 out = self.relu(out)
85
86 return out
87
88
89class Bottleneck(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected