pytorch
29184f86 - Correctly print out sign of near-zero double values (#47081)

Commit
4 years ago
Correctly print out sign of near-zero double values (#47081) Summary: inside IValue.h, we previously printed -0.0 as 0.0. Therefore, it was causing some inconsistency when using -0.0. Pull Request resolved: https://github.com/pytorch/pytorch/pull/47081 Test Plan: A new test case inside test_jit that divides a tensor by -0. and checks if it outputs -inf for all modes. Fixes https://github.com/pytorch/pytorch/issues/46848 Reviewed By: mrshenli Differential Revision: D24688572 Pulled By: gmagogsfm fbshipit-source-id: 01a9d3f782e0711dd10bf24e6f3aa62eee72c895
Parents
Loading