-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
clean warnings from tests and CI runs, and prepare for upgrade to PTL 1.8 #4830
Conversation
36a6827
to
f23e11e
Compare
This pull request introduces 2 alerts when merging f23e11e into dd6e95e - view on LGTM.com new alerts:
|
This pull request introduces 2 alerts when merging 8c69a46 into dd6e95e - view on LGTM.com new alerts:
|
22f0406
to
239b8e1
Compare
This pull request introduces 1 alert when merging 239b8e1 into 2ef4f35 - view on LGTM.com new alerts:
|
239b8e1
to
c0482e5
Compare
This pull request introduces 1 alert when merging c0482e5 into ea3c1b5 - view on LGTM.com new alerts:
|
c0482e5
to
36fbb43
Compare
This pull request introduces 1 alert when merging 36fbb43 into 1c16b96 - view on LGTM.com new alerts:
|
4747902
to
3c6403c
Compare
76b0ad2
to
4a169f5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
(just in case, others don't merge @nithinraok just deciding if we wait for a branch cutoff) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall looks good, just one question about why torch.long is removed ? It's necessary normally.
@@ -31,7 +31,7 @@ def pack_hypotheses(hypotheses: List[rnnt_utils.Hypothesis], logitlen: torch.Ten | |||
logitlen_cpu = logitlen | |||
|
|||
for idx, hyp in enumerate(hypotheses): # type: rnnt_utils.Hypothesis | |||
hyp.y_sequence = torch.tensor(hyp.y_sequence, dtype=torch.long) | |||
hyp.y_sequence = torch.tensor(hyp.y_sequence,) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be long
|
||
def val_dataloader(self): | ||
dataset = OnesDataset(10) | ||
return torch.utils.data.DataLoader(dataset, batch_size=2) | ||
return torch.utils.data.DataLoader(dataset, batch_size=2, num_workers=8) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are workers necessary for the test ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not mandatory, but lots of unnecessary warnings with workers=0.
bee1c15
to
606ecc6
Compare
Signed-off-by: nithinraok <[email protected]>
Signed-off-by: nithinraok <[email protected]>
Signed-off-by: nithinraok <[email protected]>
Signed-off-by: nithinraok <[email protected]>
Signed-off-by: nithinraok <[email protected]>
Signed-off-by: nithinraok <[email protected]>
Signed-off-by: nithinraok <[email protected]>
Signed-off-by: nithinraok <[email protected]>
Signed-off-by: nithinraok <[email protected]>
Signed-off-by: nithinraok <[email protected]>
Signed-off-by: nithinraok <[email protected]>
Signed-off-by: nithinraok <[email protected]>
Signed-off-by: SeanNaren <[email protected]>
Signed-off-by: nithinraok <[email protected]>
606ecc6
to
cefad2f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great !
… 1.8 (#4830) * remove with_downloads marker warning from pytest Signed-off-by: nithinraok <[email protected]> * regex escape sequence and np float deprecation Signed-off-by: nithinraok <[email protected]> * improve speed of torchmetrics Signed-off-by: nithinraok <[email protected]> * fix python __int__ deprecation Signed-off-by: nithinraok <[email protected]> * multi binary accuracy Signed-off-by: nithinraok <[email protected]> * update topkaccuracy metric Signed-off-by: nithinraok <[email protected]> * trainer, text norm, qr -> linalg.qr Signed-off-by: nithinraok <[email protected]> * remove weights save path arg to trainer Signed-off-by: nithinraok <[email protected]> * ptl core warnings fix Signed-off-by: nithinraok <[email protected]> * on_pretrain_routine_start -> on_fit_start Signed-off-by: nithinraok <[email protected]> * add weights_save_path to deprecated args Signed-off-by: nithinraok <[email protected]> * style fix Signed-off-by: nithinraok <[email protected]> * Remove reference Signed-off-by: SeanNaren <[email protected]> * revert torch.long change Signed-off-by: nithinraok <[email protected]> Signed-off-by: nithinraok <[email protected]> Signed-off-by: SeanNaren <[email protected]> Co-authored-by: SeanNaren <[email protected]>
… 1.8 (#4830) * remove with_downloads marker warning from pytest Signed-off-by: nithinraok <[email protected]> * regex escape sequence and np float deprecation Signed-off-by: nithinraok <[email protected]> * improve speed of torchmetrics Signed-off-by: nithinraok <[email protected]> * fix python __int__ deprecation Signed-off-by: nithinraok <[email protected]> * multi binary accuracy Signed-off-by: nithinraok <[email protected]> * update topkaccuracy metric Signed-off-by: nithinraok <[email protected]> * trainer, text norm, qr -> linalg.qr Signed-off-by: nithinraok <[email protected]> * remove weights save path arg to trainer Signed-off-by: nithinraok <[email protected]> * ptl core warnings fix Signed-off-by: nithinraok <[email protected]> * on_pretrain_routine_start -> on_fit_start Signed-off-by: nithinraok <[email protected]> * add weights_save_path to deprecated args Signed-off-by: nithinraok <[email protected]> * style fix Signed-off-by: nithinraok <[email protected]> * Remove reference Signed-off-by: SeanNaren <[email protected]> * revert torch.long change Signed-off-by: nithinraok <[email protected]> Signed-off-by: nithinraok <[email protected]> Signed-off-by: SeanNaren <[email protected]> Co-authored-by: SeanNaren <[email protected]>
… 1.8 (#4830) * remove with_downloads marker warning from pytest Signed-off-by: nithinraok <[email protected]> * regex escape sequence and np float deprecation Signed-off-by: nithinraok <[email protected]> * improve speed of torchmetrics Signed-off-by: nithinraok <[email protected]> * fix python __int__ deprecation Signed-off-by: nithinraok <[email protected]> * multi binary accuracy Signed-off-by: nithinraok <[email protected]> * update topkaccuracy metric Signed-off-by: nithinraok <[email protected]> * trainer, text norm, qr -> linalg.qr Signed-off-by: nithinraok <[email protected]> * remove weights save path arg to trainer Signed-off-by: nithinraok <[email protected]> * ptl core warnings fix Signed-off-by: nithinraok <[email protected]> * on_pretrain_routine_start -> on_fit_start Signed-off-by: nithinraok <[email protected]> * add weights_save_path to deprecated args Signed-off-by: nithinraok <[email protected]> * style fix Signed-off-by: nithinraok <[email protected]> * Remove reference Signed-off-by: SeanNaren <[email protected]> * revert torch.long change Signed-off-by: nithinraok <[email protected]> Signed-off-by: nithinraok <[email protected]> Signed-off-by: SeanNaren <[email protected]> Co-authored-by: SeanNaren <[email protected]> Signed-off-by: George Zelenfroynd <[email protected]>
… 1.8 (NVIDIA#4830) * remove with_downloads marker warning from pytest Signed-off-by: nithinraok <[email protected]> * regex escape sequence and np float deprecation Signed-off-by: nithinraok <[email protected]> * improve speed of torchmetrics Signed-off-by: nithinraok <[email protected]> * fix python __int__ deprecation Signed-off-by: nithinraok <[email protected]> * multi binary accuracy Signed-off-by: nithinraok <[email protected]> * update topkaccuracy metric Signed-off-by: nithinraok <[email protected]> * trainer, text norm, qr -> linalg.qr Signed-off-by: nithinraok <[email protected]> * remove weights save path arg to trainer Signed-off-by: nithinraok <[email protected]> * ptl core warnings fix Signed-off-by: nithinraok <[email protected]> * on_pretrain_routine_start -> on_fit_start Signed-off-by: nithinraok <[email protected]> * add weights_save_path to deprecated args Signed-off-by: nithinraok <[email protected]> * style fix Signed-off-by: nithinraok <[email protected]> * Remove reference Signed-off-by: SeanNaren <[email protected]> * revert torch.long change Signed-off-by: nithinraok <[email protected]> Signed-off-by: nithinraok <[email protected]> Signed-off-by: SeanNaren <[email protected]> Co-authored-by: SeanNaren <[email protected]> Signed-off-by: Matvei Novikov <[email protected]>
… 1.8 (NVIDIA#4830) * remove with_downloads marker warning from pytest Signed-off-by: nithinraok <[email protected]> * regex escape sequence and np float deprecation Signed-off-by: nithinraok <[email protected]> * improve speed of torchmetrics Signed-off-by: nithinraok <[email protected]> * fix python __int__ deprecation Signed-off-by: nithinraok <[email protected]> * multi binary accuracy Signed-off-by: nithinraok <[email protected]> * update topkaccuracy metric Signed-off-by: nithinraok <[email protected]> * trainer, text norm, qr -> linalg.qr Signed-off-by: nithinraok <[email protected]> * remove weights save path arg to trainer Signed-off-by: nithinraok <[email protected]> * ptl core warnings fix Signed-off-by: nithinraok <[email protected]> * on_pretrain_routine_start -> on_fit_start Signed-off-by: nithinraok <[email protected]> * add weights_save_path to deprecated args Signed-off-by: nithinraok <[email protected]> * style fix Signed-off-by: nithinraok <[email protected]> * Remove reference Signed-off-by: SeanNaren <[email protected]> * revert torch.long change Signed-off-by: nithinraok <[email protected]> Signed-off-by: nithinraok <[email protected]> Signed-off-by: SeanNaren <[email protected]> Co-authored-by: SeanNaren <[email protected]> Signed-off-by: Matvei Novikov <[email protected]>
… 1.8 (NVIDIA#4830) * remove with_downloads marker warning from pytest Signed-off-by: nithinraok <[email protected]> * regex escape sequence and np float deprecation Signed-off-by: nithinraok <[email protected]> * improve speed of torchmetrics Signed-off-by: nithinraok <[email protected]> * fix python __int__ deprecation Signed-off-by: nithinraok <[email protected]> * multi binary accuracy Signed-off-by: nithinraok <[email protected]> * update topkaccuracy metric Signed-off-by: nithinraok <[email protected]> * trainer, text norm, qr -> linalg.qr Signed-off-by: nithinraok <[email protected]> * remove weights save path arg to trainer Signed-off-by: nithinraok <[email protected]> * ptl core warnings fix Signed-off-by: nithinraok <[email protected]> * on_pretrain_routine_start -> on_fit_start Signed-off-by: nithinraok <[email protected]> * add weights_save_path to deprecated args Signed-off-by: nithinraok <[email protected]> * style fix Signed-off-by: nithinraok <[email protected]> * Remove reference Signed-off-by: SeanNaren <[email protected]> * revert torch.long change Signed-off-by: nithinraok <[email protected]> Signed-off-by: nithinraok <[email protected]> Signed-off-by: SeanNaren <[email protected]> Co-authored-by: SeanNaren <[email protected]>
… 1.8 (NVIDIA#4830) * remove with_downloads marker warning from pytest Signed-off-by: nithinraok <[email protected]> * regex escape sequence and np float deprecation Signed-off-by: nithinraok <[email protected]> * improve speed of torchmetrics Signed-off-by: nithinraok <[email protected]> * fix python __int__ deprecation Signed-off-by: nithinraok <[email protected]> * multi binary accuracy Signed-off-by: nithinraok <[email protected]> * update topkaccuracy metric Signed-off-by: nithinraok <[email protected]> * trainer, text norm, qr -> linalg.qr Signed-off-by: nithinraok <[email protected]> * remove weights save path arg to trainer Signed-off-by: nithinraok <[email protected]> * ptl core warnings fix Signed-off-by: nithinraok <[email protected]> * on_pretrain_routine_start -> on_fit_start Signed-off-by: nithinraok <[email protected]> * add weights_save_path to deprecated args Signed-off-by: nithinraok <[email protected]> * style fix Signed-off-by: nithinraok <[email protected]> * Remove reference Signed-off-by: SeanNaren <[email protected]> * revert torch.long change Signed-off-by: nithinraok <[email protected]> Signed-off-by: nithinraok <[email protected]> Signed-off-by: SeanNaren <[email protected]> Co-authored-by: SeanNaren <[email protected]>
… 1.8 (NVIDIA#4830) * remove with_downloads marker warning from pytest Signed-off-by: nithinraok <[email protected]> * regex escape sequence and np float deprecation Signed-off-by: nithinraok <[email protected]> * improve speed of torchmetrics Signed-off-by: nithinraok <[email protected]> * fix python __int__ deprecation Signed-off-by: nithinraok <[email protected]> * multi binary accuracy Signed-off-by: nithinraok <[email protected]> * update topkaccuracy metric Signed-off-by: nithinraok <[email protected]> * trainer, text norm, qr -> linalg.qr Signed-off-by: nithinraok <[email protected]> * remove weights save path arg to trainer Signed-off-by: nithinraok <[email protected]> * ptl core warnings fix Signed-off-by: nithinraok <[email protected]> * on_pretrain_routine_start -> on_fit_start Signed-off-by: nithinraok <[email protected]> * add weights_save_path to deprecated args Signed-off-by: nithinraok <[email protected]> * style fix Signed-off-by: nithinraok <[email protected]> * Remove reference Signed-off-by: SeanNaren <[email protected]> * revert torch.long change Signed-off-by: nithinraok <[email protected]> Signed-off-by: nithinraok <[email protected]> Signed-off-by: SeanNaren <[email protected]> Co-authored-by: SeanNaren <[email protected]> Signed-off-by: Matvei Novikov <[email protected]>
… 1.8 (NVIDIA#4830) * remove with_downloads marker warning from pytest Signed-off-by: nithinraok <[email protected]> * regex escape sequence and np float deprecation Signed-off-by: nithinraok <[email protected]> * improve speed of torchmetrics Signed-off-by: nithinraok <[email protected]> * fix python __int__ deprecation Signed-off-by: nithinraok <[email protected]> * multi binary accuracy Signed-off-by: nithinraok <[email protected]> * update topkaccuracy metric Signed-off-by: nithinraok <[email protected]> * trainer, text norm, qr -> linalg.qr Signed-off-by: nithinraok <[email protected]> * remove weights save path arg to trainer Signed-off-by: nithinraok <[email protected]> * ptl core warnings fix Signed-off-by: nithinraok <[email protected]> * on_pretrain_routine_start -> on_fit_start Signed-off-by: nithinraok <[email protected]> * add weights_save_path to deprecated args Signed-off-by: nithinraok <[email protected]> * style fix Signed-off-by: nithinraok <[email protected]> * Remove reference Signed-off-by: SeanNaren <[email protected]> * revert torch.long change Signed-off-by: nithinraok <[email protected]> Signed-off-by: nithinraok <[email protected]> Signed-off-by: SeanNaren <[email protected]> Co-authored-by: SeanNaren <[email protected]>
… 1.8 (NVIDIA#4830) * remove with_downloads marker warning from pytest Signed-off-by: nithinraok <[email protected]> * regex escape sequence and np float deprecation Signed-off-by: nithinraok <[email protected]> * improve speed of torchmetrics Signed-off-by: nithinraok <[email protected]> * fix python __int__ deprecation Signed-off-by: nithinraok <[email protected]> * multi binary accuracy Signed-off-by: nithinraok <[email protected]> * update topkaccuracy metric Signed-off-by: nithinraok <[email protected]> * trainer, text norm, qr -> linalg.qr Signed-off-by: nithinraok <[email protected]> * remove weights save path arg to trainer Signed-off-by: nithinraok <[email protected]> * ptl core warnings fix Signed-off-by: nithinraok <[email protected]> * on_pretrain_routine_start -> on_fit_start Signed-off-by: nithinraok <[email protected]> * add weights_save_path to deprecated args Signed-off-by: nithinraok <[email protected]> * style fix Signed-off-by: nithinraok <[email protected]> * Remove reference Signed-off-by: SeanNaren <[email protected]> * revert torch.long change Signed-off-by: nithinraok <[email protected]> Signed-off-by: nithinraok <[email protected]> Signed-off-by: SeanNaren <[email protected]> Co-authored-by: SeanNaren <[email protected]>
… 1.8 (NVIDIA#4830) * remove with_downloads marker warning from pytest Signed-off-by: nithinraok <[email protected]> * regex escape sequence and np float deprecation Signed-off-by: nithinraok <[email protected]> * improve speed of torchmetrics Signed-off-by: nithinraok <[email protected]> * fix python __int__ deprecation Signed-off-by: nithinraok <[email protected]> * multi binary accuracy Signed-off-by: nithinraok <[email protected]> * update topkaccuracy metric Signed-off-by: nithinraok <[email protected]> * trainer, text norm, qr -> linalg.qr Signed-off-by: nithinraok <[email protected]> * remove weights save path arg to trainer Signed-off-by: nithinraok <[email protected]> * ptl core warnings fix Signed-off-by: nithinraok <[email protected]> * on_pretrain_routine_start -> on_fit_start Signed-off-by: nithinraok <[email protected]> * add weights_save_path to deprecated args Signed-off-by: nithinraok <[email protected]> * style fix Signed-off-by: nithinraok <[email protected]> * Remove reference Signed-off-by: SeanNaren <[email protected]> * revert torch.long change Signed-off-by: nithinraok <[email protected]> Signed-off-by: nithinraok <[email protected]> Signed-off-by: SeanNaren <[email protected]> Co-authored-by: SeanNaren <[email protected]> Signed-off-by: Hainan Xu <[email protected]>
… 1.8 (NVIDIA#4830) * remove with_downloads marker warning from pytest Signed-off-by: nithinraok <[email protected]> * regex escape sequence and np float deprecation Signed-off-by: nithinraok <[email protected]> * improve speed of torchmetrics Signed-off-by: nithinraok <[email protected]> * fix python __int__ deprecation Signed-off-by: nithinraok <[email protected]> * multi binary accuracy Signed-off-by: nithinraok <[email protected]> * update topkaccuracy metric Signed-off-by: nithinraok <[email protected]> * trainer, text norm, qr -> linalg.qr Signed-off-by: nithinraok <[email protected]> * remove weights save path arg to trainer Signed-off-by: nithinraok <[email protected]> * ptl core warnings fix Signed-off-by: nithinraok <[email protected]> * on_pretrain_routine_start -> on_fit_start Signed-off-by: nithinraok <[email protected]> * add weights_save_path to deprecated args Signed-off-by: nithinraok <[email protected]> * style fix Signed-off-by: nithinraok <[email protected]> * Remove reference Signed-off-by: SeanNaren <[email protected]> * revert torch.long change Signed-off-by: nithinraok <[email protected]> Signed-off-by: nithinraok <[email protected]> Signed-off-by: SeanNaren <[email protected]> Co-authored-by: SeanNaren <[email protected]> Signed-off-by: Hainan Xu <[email protected]>
Signed-off-by: nithinraok [email protected]
What does this PR do ?
Remove warnings from core and ASR code. NLP part needs more rework than expected.
Collection: Core, ASR
Changelog
Before your PR is "Ready for review"
Pre checks:
PR Type: