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

Method forward

utils/unet_blocks.py:546–551  ·  view source on GitHub ↗
(self, input_tensor, temb, encoder_hidden_states, attention_mask=None, anchor_frame_idx=None)

Source from the content-addressed store, hash-verified

544 self.temporal_transformer.proj_out = zero_module(self.temporal_transformer.proj_out)
545
546 def forward(self, input_tensor, temb, encoder_hidden_states, attention_mask=None, anchor_frame_idx=None):
547 hidden_states = input_tensor
548 hidden_states = self.temporal_transformer(hidden_states, encoder_hidden_states, attention_mask)
549
550 output = hidden_states
551 return output
552
553class TemporalTransformer3DModel(nn.Module):
554 def __init__(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected