MCPcopy Create free account
hub / github.com/Monalissaa/DisenDiff / stem

Method stem

clip/model.py:136–140  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

134
135 def forward(self, x):
136 def stem(x):
137 for conv, bn in [(self.conv1, self.bn1), (self.conv2, self.bn2), (self.conv3, self.bn3)]:
138 x = self.relu(bn(conv(x)))
139 x = self.avgpool(x)
140 return x
141
142 x = x.type(self.conv1.weight.dtype)
143 x = stem(x)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected