mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 12:54:11 +08:00
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:
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
||||
|
@ -16,7 +16,6 @@
|
||||
#endif
|
||||
|
||||
#include <c10/util/irange.h>
|
||||
#include <c10/util/math_compat.h>
|
||||
|
||||
#include <algorithm>
|
||||
#include <cmath>
|
||||
|
@ -18,7 +18,6 @@
|
||||
#endif
|
||||
|
||||
#include <c10/util/irange.h>
|
||||
#include <c10/util/math_compat.h>
|
||||
|
||||
#include <algorithm>
|
||||
#include <cmath>
|
||||
|
@ -14,8 +14,6 @@
|
||||
#include <ATen/ops/avg_pool3d_native.h>
|
||||
#endif
|
||||
|
||||
#include <c10/util/math_compat.h>
|
||||
|
||||
#include <vector>
|
||||
|
||||
namespace at {
|
||||
|
@ -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")
|
||||
|
@ -1,5 +1,4 @@
|
||||
#include <c10/util/complex.h>
|
||||
#include <c10/util/math_compat.h>
|
||||
|
||||
#include <cmath>
|
||||
|
||||
|
@ -2,7 +2,6 @@
|
||||
|
||||
#include <c10/util/BFloat16.h>
|
||||
#include <c10/util/Half.h>
|
||||
#include <c10/util/math_compat.h>
|
||||
|
||||
namespace c10 {
|
||||
|
||||
|
@ -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 {
|
||||
|
@ -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>
|
||||
|
Reference in New Issue
Block a user