fast-bert icon indicating copy to clipboard operation
fast-bert copied to clipboard

pytorch warnings

Open woiza opened this issue 4 years ago • 0 comments

I followed your notebook on multi-label classification: fast-bert/sample_notebooks/new-toxic-multilabel.ipynb

and got the following warnings:

pytorch/lib/python3.7/site-packages/torch/nn/parallel/_functions.py:61: UserWarning: Was asked to gather along dimension 0, but all input tensors were scalars; will instead unsqueeze and return a vector. warnings.warn('Was asked to gather along dimension 0, but all '

pytorch/lib/python3.7/site-packages/torch/optim/lr_scheduler.py:224: UserWarning: To get the last learning rate computed by the scheduler, please use get_last_lr(). warnings.warn("To get the last learning rate computed by the scheduler, "

How can I fix them?

woiza avatar Jul 30 '20 14:07 woiza