handle a rare case of histogram min is inf/nan (#18239)
authorJongsoo Park <jongsoo@fb.com>
Mon, 1 Apr 2019 04:25:17 +0000 (21:25 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Mon, 1 Apr 2019 04:32:54 +0000 (21:32 -0700)
commit505d50ea907973ce471d3c2f0b7406b08f570ee5
treef42f429f37a6a1668e0fcc700891c7e29ad9000d
parent6841537933a8099e8ddcdfdd5f4b2f1101989990
handle a rare case of histogram min is inf/nan (#18239)

Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/18239

When min is inf or nan, we get UBSAN errors

Reviewed By: csummersea

Differential Revision: D14537668

fbshipit-source-id: e70ffb5ecd2b10793356070c69fdabf8f25b203e
caffe2/quantization/server/activation_distribution_observer.cc
caffe2/quantization/server/activation_distribution_observer.h