Skip to content

Commit

Permalink
Update message
Browse files Browse the repository at this point in the history
  • Loading branch information
Borda committed Jul 28, 2020
1 parent 82d853b commit 7013897
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions pytorch_lightning/trainer/ignored_warnings.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,9 @@

def ignore_scalar_return_in_dp():
# Users get confused by this warning so we silence it
m_1 = (
'Was asked to gather along dimension 0, but all '
'input tensors were scalars; will instead unsqueeze '
'and return a vector.'
)
warnings.filterwarnings('ignore', message=m_1)
warnings.filterwarnings('ignore', message='Was asked to gather along dimension 0, but all '
'input tensors were scalars; will instead unsqueeze '
'and return a vector.')


ignore_scalar_return_in_dp()

0 comments on commit 7013897

Please sign in to comment.