MCPcopy Create free account
hub / github.com/PKU-YuanGroup/MagicTime / forward

Method forward

utils/unet_blocks.py:709–711  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

707 self.register_buffer('pe', pe)
708
709 def forward(self, x):
710 x = x + self.pe[:, :x.size(1)]
711 return self.dropout(x)
712
713
714class VersatileAttention(CrossAttention):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected