MCPcopy Create free account
hub / github.com/VisionXLab/OF-Diff / forward

Method forward

ldm/modules/midas/midas/blocks.py:138–152  ·  view source on GitHub ↗

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

(self, x)

Source from the content-addressed store, hash-verified

136 self.align_corners = align_corners
137
138 def forward(self, x):
139 """Forward pass.
140
141 Args:
142 x (tensor): input
143
144 Returns:
145 tensor: interpolated data
146 """
147
148 x = self.interp(
149 x, scale_factor=self.scale_factor, mode=self.mode, align_corners=self.align_corners
150 )
151
152 return x
153
154
155class ResidualConvUnit(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected