Skip to content

Conversation

@vincentqb
Copy link
Contributor

@vincentqb vincentqb commented Oct 13, 2020

Addresses feedback from #632
Closes vincentqb#2

@vincentqb vincentqb changed the title Wav2letter clean Feedback for wav2letter Oct 13, 2020
@vincentqb vincentqb changed the title Feedback for wav2letter Feedback for wav2letter pipeline Oct 13, 2020
from torchaudio.datasets import LIBRISPEECH


def pad_sequence(sequences, padding_value=0.0):
Copy link
Contributor Author

@vincentqb vincentqb Oct 26, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note to self: how fast this runs against something like this?

def pad_sequence(batch):
    # Make all tensor in a batch the same length by padding with zeros
    batch = [item.t() for item in batch]
    batch = torch.nn.utils.rnn.pad_sequence(batch, batch_first=True, padding_value=0.)
    return batch.permute(0, 2, 1)

mthrok pushed a commit to mthrok/audio that referenced this pull request Feb 26, 2021
@facebook-github-bot
Copy link
Contributor

Hi @vincentqb!

Thank you for your pull request.

We require contributors to sign our Contributor License Agreement, and yours needs attention.

You currently have a record in our system, but the CLA is no longer valid, and will need to be resubmitted.

Process

In order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with CLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.

If you have received this in error or have any questions, please contact us at [email protected]. Thanks!

@facebook-github-bot
Copy link
Contributor

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks!

@mthrok mthrok closed this Oct 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants