Skip to content

Commit f192b9c

Browse files
committed
Remove constexpr
1 parent 9b6fe34 commit f192b9c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

aten/src/ATen/native/cuda/LogcumsumexpKernel.cu

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ __host__ __device__ c10::complex<scalar_t> _fast_build_exp_inf(const c10::comple
6161
// complex exponential function, but implemented manually to get fast compilation time
6262
// this function only handles the case where the real part of x is infinite
6363
auto ximag = std::imag(x);
64-
CONSTEXPR_EXCEPT_WIN_CUDA auto exp_x_abs = std::numeric_limits<scalar_t>::infinity();
64+
auto exp_x_abs = std::numeric_limits<scalar_t>::infinity();
6565
auto sin = std::sin(ximag);
6666
auto cos = std::cos(ximag);
6767
// special case if the angle is exactly the multiple of pi/2
@@ -107,7 +107,7 @@ void launch_logcumsumexp_cuda_kernel(const TensorBase& result, const TensorBase&
107107
self.scalar_type(), "logcumsumexp_cuda",
108108
[&]() {
109109
using opmath_t = at::opmath_type<scalar_t>;
110-
CONSTEXPR_EXCEPT_WIN_CUDA scalar_t init = -std::numeric_limits<scalar_t>::infinity();
110+
scalar_t init = -std::numeric_limits<scalar_t>::infinity();
111111
auto log_add_exp = [] C10_HOST_DEVICE (const scalar_t x_, const scalar_t y_) -> scalar_t {
112112
const opmath_t x{x_}, y{y_};
113113
return _log_add_exp_helper(x, y);

0 commit comments

Comments
 (0)