Allow setting tolerations in testing math functions. (#29297)
Summary:
May be needed by https://github.com/pytorch/pytorch/issues/25287
Pull Request resolved: https://github.com/pytorch/pytorch/pull/29297
Differential Revision: D18371907
Pulled By: ezyang
fbshipit-source-id: 4b90ae2b9867d21401498b780428dd009741b6bc