Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to account for padded inputs in LEAF? #18

Open
PrabhjotKaurGosal opened this issue Mar 27, 2022 · 0 comments
Open

How to account for padded inputs in LEAF? #18

PrabhjotKaurGosal opened this issue Mar 27, 2022 · 0 comments

Comments

@PrabhjotKaurGosal
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant