Skip to content

Dimension in acoustic transformer #2

Description

@mohit2b

Hi, I am trying to run your Trimodal-BART-driver.py file. In it in line 416 I believe the dimension of acoustic input is batch x max_acoustic_len x acoustic_dim. The output returned by self.acoustic_transformer(acoustic_input) is of shape batch x max_acoustic_len x acoustic_dim. So the output of self.acoustic_transformer(acoustic_input)[-1] will be of shape max_acoustic_len x acoustic_dim. And you are passing this output of shape (max_acoustic_len x acoustic_dim) to MAF_layer in line 418. Therefore the dimension of acoustic_context in MAF_layer is (max_acoustic_len x acoustic_dim).

So my question is since the dimension of acoustic_context in MAF_layer is (max_acoustic_len x acoustic_dim) in line 242 it is throwing error. Please help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions