Target and input sizes mismatch warning in L1 Loss / L1 Smooth Loss (#18565)
authorAurélien Roy <aurelien_roy@outlook.com>
Fri, 29 Mar 2019 03:46:03 +0000 (20:46 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Fri, 29 Mar 2019 03:49:51 +0000 (20:49 -0700)
commit12abc8a99a5fc60603b3aecf5faa37600ad4fff6
tree4ed0fdef1a2adb03475949aad121619445fee9f0
parent1989716ae56a76168291f9f462d4af7852164b4f
Target and input sizes mismatch warning in L1 Loss / L1 Smooth Loss (#18565)

Summary:
Addind the same warning message already present in the mse_loss function to the L1 losses when input and target sizes are different.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/18565

Differential Revision: D14671415

Pulled By: soumith

fbshipit-source-id: 01f5e1fb1ea119dbb2aecf1d94d0cb462f284982
torch/nn/functional.py