MCPcopy Create free account
hub / github.com/AlayaLab/Hive / Transformer2DModelOutput

Class Transformer2DModelOutput

models/flowsep/diffusers/models/transformer_2d.py:30–38  ·  view source on GitHub ↗

Args: sample (`torch.FloatTensor` of shape `(batch_size, num_channels, height, width)` or `(batch size, num_vector_embeds - 1, num_latent_pixels)` if [`Transformer2DModel`] is discrete): Hidden states conditioned on `encoder_hidden_states` input. If discrete, returns prob

Source from the content-addressed store, hash-verified

28
29@dataclass
30class Transformer2DModelOutput(BaseOutput):
31 """
32 Args:
33 sample (`torch.FloatTensor` of shape `(batch_size, num_channels, height, width)` or `(batch size, num_vector_embeds - 1, num_latent_pixels)` if [`Transformer2DModel`] is discrete):
34 Hidden states conditioned on `encoder_hidden_states` input. If discrete, returns probability distributions
35 for the unnoised latent pixels.
36 """
37
38 sample: torch.FloatTensor
39
40
41class Transformer2DModel(ModelMixin, ConfigMixin):

Callers 3

forwardMethod · 0.85
forwardMethod · 0.85
forwardMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected