pytorch
dd6beca8 - Changing the use from ASSERT_EQ to ASSERT_FLOAT_EQ on nn_utils test. (#83693)

Commit
2 years ago
Changing the use from ASSERT_EQ to ASSERT_FLOAT_EQ on nn_utils test. (#83693) Changing the use from ASSERT_EQ to ASSERT_FLOAT_EQ on nn_utils.cpp:ClipGradNorm as this is the proper way to compare equality between floating point values. This avoids `test_api` ClipGradNorm failing for WoA. Pull Request resolved: https://github.com/pytorch/pytorch/pull/83693 Approved by: https://github.com/ngimel, https://github.com/kit1980
Author
Committer
Parents
Loading