MCPcopy Create free account
hub / github.com/cvg/NoPoSplat / forward

Method forward

src/model/encoder/backbone/croco/blocks.py:186–191  ·  view source on GitHub ↗
(self, x, y, xpos, ypos)

Source from the content-addressed store, hash-verified

184 self.norm_y = norm_layer(dim) if norm_mem else nn.Identity()
185
186 def forward(self, x, y, xpos, ypos):
187 x = x + self.drop_path(self.attn(self.norm1(x), xpos))
188 y_ = self.norm_y(y)
189 x = x + self.drop_path(self.cross_attn(self.norm2(x), y_, y_, xpos, ypos))
190 x = x + self.drop_path(self.mlp(self.norm3(x)))
191 return x, y
192
193
194# patch embedding

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected