MCPcopy Create free account
hub / github.com/OpenDriveLab/ReSim / _forward

Method _forward

sat/sgm/modules/attention.py:470–473  ·  view source on GitHub ↗
(self, x, context=None)

Source from the content-addressed store, hash-verified

468 return checkpoint(self._forward, (x, context), self.parameters(), self.checkpoint)
469
470 def _forward(self, x, context=None):
471 x = self.attn1(self.norm1(x), context=context) + x
472 x = self.ff(self.norm2(x)) + x
473 return x
474
475
476class SpatialTransformer(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected