Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/71356
Suppress remaining header based warnings in `caffe2/c10` when building with `clang`
Test Plan: CI pass
Reviewed By: r-barnes
Differential Revision: D33600097
fbshipit-source-id: e1c0d84a0bad768eb03e047d62b5379cf28b48e2
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/56830
Opt into formatting on GitHub and format everything. This is a trial run before turning on formatting for more and eventually all of the codebase.
Test Plan: CI
Reviewed By: zertosh
Differential Revision: D27979080
fbshipit-source-id: a80f0c48691c08ae8ca0af06377b87e6a2351151
Summary:
Also, get rid of MSVC specific `_USE_MATH_DEFINES`
Test at compile time that c10::pi<double> == M_PI
Pull Request resolved: https://github.com/pytorch/pytorch/pull/50819
Reviewed By: albanD
Differential Revision: D25976330
Pulled By: malfet
fbshipit-source-id: 8f3ddfd58a5aa4bd382da64ad6ecc679706d1284