Skip to content

Embeddings - Why does t_embeddings have 3 dimensions instead of 2? #38

@jdesouza-ai

Description

@jdesouza-ai

Hi,

I have used a script from another StackGAN repo to generate embeddings for sentences. The result for a set of sentences when I load in the t7 file and convert it numpy is a 2D matrix - where there is a 1 dimensional embedding for each sentence - this is to be expected.

However, when I look at the code for this repo is shows the below reference:
t_embeddings[:, i, :]

indicating that t_embeddings is 3D - where does the extra dimension come from?

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