pytorch
4239416c - Throws runtime error on attempted addcdiv integer division (#38762)

Commit
4 years ago
Throws runtime error on attempted addcdiv integer division (#38762) Summary: 1.6 Deprecation Note: In 1.6 attempting to perform integer division using addcdiv will throw a RuntimeError, and in 1.7 the behavior will change so that addcdiv always performs a true division of its tensor1 and tensor2 inputs. See the warning in torch.addcdiv's documentation for more information. PR Summary: This PR updates the warning that appears when addcdiv performs integer division to throw a RuntimeError. This is intended to prevent silent errors when torch.addcdiv's behavior is changed to always perform true division in 1.7. The documentation is updated (slightly) to reflect this, as our the addcdiv tests in test_torch and test_type_promotion. Pull Request resolved: https://github.com/pytorch/pytorch/pull/38762 Differential Revision: D21657585 Pulled By: mruberry fbshipit-source-id: c514b44409706f2bcfeca4473424b30cc48aafbc
Author
Mike Ruberry
Parents
Loading