MCPcopy Create free account
hub / github.com/VisionXLab/OF-Diff / forward

Method forward

ldm/modules/attention.py:268–269  ·  view source on GitHub ↗
(self, x, context=None)

Source from the content-addressed store, hash-verified

266 self.checkpoint = checkpoint
267
268 def forward(self, x, context=None):
269 return checkpoint(self._forward, (x, context), self.parameters(), self.checkpoint)
270
271 def _forward(self, x, context=None):
272 x = self.attn1(self.norm1(x), context=context if self.disable_self_attn else None) + x

Callers

nothing calls this directly

Calls 1

checkpointFunction · 0.90

Tested by

no test coverage detected