Skip to content

How to account for padded inputs in LEAF? #18

@PrabhjotKaurGosal

Description

@PrabhjotKaurGosal

Hello,

I have a dataset where the audio files are not of the same length. Therefore, I pad the shorter sequences to have the overall shape as (batch_size, num_samples). It does not appear that LEAF handles padded input any differently than the non-padded input.

I would like to mask the padded portion of the input sequence for my downstream classification model (example, transformer). Is there any way I can take special care of the padded inputs when it passes through the LEAF architecture, so that the downstream model knows which portion of the input belongs to padded portion of the original sequence?

Thanks!

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