Fix a dev mode bug in activation distribution observer (#19004)
authorSummer Deng <summerdeng@fb.com>
Mon, 8 Apr 2019 16:26:37 +0000 (09:26 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Mon, 8 Apr 2019 16:36:50 +0000 (09:36 -0700)
commit02968398d5b6a77ec2818f5fdd796a8f02d533a8
treedb6fee9ab53ae67a908b6c273b0a7dfcedb5d261
parent2addcccbf1e6b1327c9667ec1d559c2143d4206a
Fix a dev mode bug in activation distribution observer (#19004)

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

Handling the exception case when the data has min 3.40282e+38 max -3.40282e+38

Reviewed By: jspark1105

Differential Revision: D14822193

fbshipit-source-id: b9771d1584fdf8317f5b8c7f5806be5d27314386
caffe2/quantization/server/activation_distribution_observer.cc
caffe2/quantization/server/pybind.cc