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

Method forward

dmidas/blocks.py:229–243  ·  view source on GitHub ↗

Forward pass. Args: x (tensor): input Returns: tensor: interpolated data

(self, x)

Source from the content-addressed store, hash-verified

227 self.align_corners = align_corners
228
229 def forward(self, x):
230 """Forward pass.
231
232 Args:
233 x (tensor): input
234
235 Returns:
236 tensor: interpolated data
237 """
238
239 x = self.interp(
240 x, scale_factor=self.scale_factor, mode=self.mode, align_corners=self.align_corners
241 )
242
243 return x
244
245
246class ResidualConvUnit(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected