Skip to content

Concatenation of prefix and embedding_text in torch.cat #79

@Tshuning

Description

@Tshuning

First of all, thank you for your valuable contribution! I am currently studying your code and have a question about a particular section. Could you please help me understand the following line of code:

embedding_cat = torch.cat((prefix_projections, embedding_text), dim=1)

I noticed that prefix_projections and embedding_text are concatenated along dim=1. I'd like to inquire about the purpose behind combining these two tensors. Is it serving as a prompt?

Once again, thank you for your patience and contribution!

Best regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions