MCPcopy
hub / github.com/zai-org/CogVideo / forward

Method forward

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

Source from the content-addressed store, hash-verified

465 self.checkpoint = checkpoint
466
467 def forward(self, x, context=None):
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

Callers

nothing calls this directly

Calls 2

parametersMethod · 0.80
checkpointFunction · 0.50

Tested by

no test coverage detected