Remove use of math_compat.h (#116167)

Because  ANDROID>=21 is assumed in CI tests, it is time to remove old workarounds. math_compat.h contains solely wrapper math functions for ANDROID, so we can remove its usage.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/116167
Approved by: https://github.com/ezyang
This commit is contained in:
cyy
2024-01-19 03:37:53 +00:00
committed by PyTorch MergeBot
parent 5c17f66a3d
commit 38d9b3d937
13 changed files with 0 additions and 14 deletions

View File

@ -31,7 +31,6 @@
#include <c10/util/BFloat16.h>
#include <c10/util/BFloat16-math.h>
#include <c10/util/copysign.h>
#include <c10/util/math_compat.h>
#include <ATen/native/cpu/zmath.h>
#include <c10/util/TypeCast.h>
#include <c10/macros/Macros.h>

View File

@ -4,7 +4,6 @@
#include <ATen/TensorIterator.h>
#include <ATen/TensorOperators.h>
#include <c10/util/Exception.h>
#include <c10/util/math_compat.h>
#include <c10/util/Optional.h>
#include <ATen/CPUGeneratorImpl.h>

View File

@ -6,7 +6,6 @@
#include <c10/util/BFloat16.h>
#include <c10/util/Half.h>
#include <c10/util/MathConstants.h>
#include <c10/util/math_compat.h>
#include <cfloat>
#include <cmath>
#include <cstdint>

View File

@ -18,7 +18,6 @@
#include <ATen/native/cpu/zmath.h>
#include <ATen/OpMathType.h>
#include <c10/util/math_compat.h>
#include <c10/util/MathConstants.h>
#include <c10/core/Scalar.h>
#include <c10/util/TypeSafeSignMath.h>

View File

@ -2,7 +2,6 @@
// Complex number math operations that act as no-ops for other dtypes.
#include <c10/util/complex.h>
#include <c10/util/math_compat.h>
#include <c10/util/MathConstants.h>
#include<ATen/NumericUtils.h>

View File

@ -16,7 +16,6 @@
#endif
#include <c10/util/irange.h>
#include <c10/util/math_compat.h>
#include <algorithm>
#include <cmath>

View File

@ -18,7 +18,6 @@
#endif
#include <c10/util/irange.h>
#include <c10/util/math_compat.h>
#include <algorithm>
#include <cmath>

View File

@ -14,8 +14,6 @@
#include <ATen/ops/avg_pool3d_native.h>
#endif
#include <c10/util/math_compat.h>
#include <vector>
namespace at {

View File

@ -2,7 +2,6 @@
#include <c10/util/BFloat16.h>
#include <c10/util/Half.h>
#include <c10/util/math_compat.h>
C10_CLANG_DIAGNOSTIC_PUSH()
#if C10_CLANG_HAS_WARNING("-Wimplicit-float-conversion")

View File

@ -1,5 +1,4 @@
#include <c10/util/complex.h>
#include <c10/util/math_compat.h>
#include <cmath>

View File

@ -2,7 +2,6 @@
#include <c10/util/BFloat16.h>
#include <c10/util/Half.h>
#include <c10/util/math_compat.h>
namespace c10 {

View File

@ -32,7 +32,6 @@
#include <c10/core/thread_pool.h>
#include <c10/util/SmallVector.h>
#include <c10/util/irange.h>
#include <c10/util/math_compat.h>
#include <c10/util/string_utils.h>
namespace torch::jit {

View File

@ -9,7 +9,6 @@
#include <c10/macros/Macros.h>
#include <c10/util/Logging.h>
#include <c10/util/math_compat.h>
#include <c10/util/string_utils.h>
#include <torch/csrc/jit/tensorexpr/codegen.h>
#include <torch/csrc/jit/tensorexpr/exceptions.h>