MCPcopy Create free account
hub / github.com/Francis-Rings/StableAnimator / TransformerTemporalModelOutput

Class TransformerTemporalModelOutput

animation/modules/attention.py:15–24  ·  view source on GitHub ↗

The output of [`TransformerTemporalModel`]. Args: sample (`torch.FloatTensor` of shape `(batch_size x num_frames, num_channels, height, width)`): The hidden states output conditioned on `encoder_hidden_states` input.

Source from the content-addressed store, hash-verified

13
14@dataclass
15class TransformerTemporalModelOutput(BaseOutput):
16 """
17 The output of [`TransformerTemporalModel`].
18
19 Args:
20 sample (`torch.FloatTensor` of shape `(batch_size x num_frames, num_channels, height, width)`):
21 The hidden states output conditioned on `encoder_hidden_states` input.
22 """
23
24 sample: torch.FloatTensor
25
26
27class TransformerTemporalModel(ModelMixin, ConfigMixin):

Callers 2

forwardMethod · 0.70
forwardMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected