Skip to content

Is this docstring of encoder_hidden_states argument in Transformer2DModel correct? #3062

@offchan42

Description

@offchan42

encoder_hidden_states ( `torch.LongTensor` of shape `(batch size, encoder_hidden_states dim)`, *optional*):
Conditional embeddings for cross attention layer. If not given, cross-attention defaults to
self-attention.

The shape is (batch_size, seq_length, embedding_dim), isn't it? Also it's supposed to be float tensor. Or maybe it supports both long and float?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions