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

Method forward

dmidas/blocks.py:268–282  ·  view source on GitHub ↗

Forward pass. Args: x (tensor): input Returns: tensor: output

(self, x)

Source from the content-addressed store, hash-verified

266 self.relu = nn.ReLU(inplace=True)
267
268 def forward(self, x):
269 """Forward pass.
270
271 Args:
272 x (tensor): input
273
274 Returns:
275 tensor: output
276 """
277 out = self.relu(x)
278 out = self.conv1(out)
279 out = self.relu(out)
280 out = self.conv2(out)
281
282 return out + x
283
284
285class FeatureFusionBlock(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected