Skip to content

πŸ–οΈ improving type-hints in speechbrain/pretrained/interfaces.py#1725

Merged
Adel-Moumen merged 4 commits into
speechbrain:developfrom
jonasvdd:develop
Dec 27, 2022
Merged

πŸ–οΈ improving type-hints in speechbrain/pretrained/interfaces.py#1725
Adel-Moumen merged 4 commits into
speechbrain:developfrom
jonasvdd:develop

Conversation

@jonasvdd

@jonasvdd jonasvdd commented Nov 25, 2022

Copy link
Copy Markdown
Contributor

It is not a big PR, but at least it is honest work πŸ˜…

This PR:

  • adjusts the wrongfully typed boundary argument (was set to str type, but must be torch.Tensor).
  • homogenizes the tensor type-hints to be all of the type torch.Tensor which is more correct. See πŸ“· ⬇️

image

Comment thread speechbrain/pretrained/interfaces.py Outdated
inputs = [
{
"text_sequences": torch.tensor(
"text_sequences": torch.Tensor(

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Whoops. Accidentally altered this one. Will fix it in a new commit.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Should be fixed now!

@jonasvdd

Copy link
Copy Markdown
Contributor Author

In f372dff, I fix some more typos throughout the whole interfaces.py file! πŸ˜„

@Adel-Moumen Adel-Moumen left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM!

Thanks a lot for the PR, you did a great job! I wish you an happy new year :-)

@Adel-Moumen Adel-Moumen merged commit 8235fd1 into speechbrain:develop Dec 27, 2022
@jonasvdd

Copy link
Copy Markdown
Contributor Author

@Adel-Moumen

Happy holidays for you as well! πŸŽ‰

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

Successfully merging this pull request may close these issues.

2 participants