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

Method forward

ldm/modules/midas/midas/blocks.py:177–191  ·  view source on GitHub ↗

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

(self, x)

Source from the content-addressed store, hash-verified

175 self.relu = nn.ReLU(inplace=True)
176
177 def forward(self, x):
178 """Forward pass.
179
180 Args:
181 x (tensor): input
182
183 Returns:
184 tensor: output
185 """
186 out = self.relu(x)
187 out = self.conv1(out)
188 out = self.relu(out)
189 out = self.conv2(out)
190
191 return out + x
192
193
194class FeatureFusionBlock(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected