MCPcopy Create free account
hub / github.com/Inception3D/TTT3R / forward

Method forward

src/dust3r/blocks.py:382–388  ·  view source on GitHub ↗
(self, x, y, z, xpos, ypos)

Source from the content-addressed store, hash-verified

380 self.norm_z = norm_layer(dim) if norm_mem else nn.Identity()
381
382 def forward(self, x, y, z, xpos, ypos):
383 x = x + self.drop_path(self.attn(self.norm1(x), xpos))
384 y_ = self.norm_y(y)
385 z_ = self.norm_z(z)
386 x = x + self.drop_path(self.cross_attn(self.norm2(x), y_, z_, xpos, ypos))
387 x = x + self.drop_path(self.mlp(self.norm3(x)))
388 return x, y
389
390
391class ModLN(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected