MCPcopy Create free account
hub / github.com/Ropedia/SpatialBench / forward

Method forward

benchmark/models/stream3r/croco/models/blocks.py:412–417  ·  view source on GitHub ↗
(self, x, y, xpos, ypos)

Source from the content-addressed store, hash-verified

410 self.norm_y = norm_layer(dim) if norm_mem else nn.Identity()
411
412 def forward(self, x, y, xpos, ypos):
413 x = x + self.drop_path(self.attn(self.norm1(x), xpos))
414 y_ = self.norm_y(y)
415 x = x + self.drop_path(self.cross_attn(self.norm2(x), y_, y_, xpos, ypos))
416 x = x + self.drop_path(self.mlp(self.norm3(x)))
417 return x, y
418
419
420# patch embedding

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected