diff --git a/tensorflow/core/kernels/cwise_ops_gpu_common.cu.h b/tensorflow/core/kernels/cwise_ops_gpu_common.cu.h index cb042fb7a55..ecc58da315f 100644 --- a/tensorflow/core/kernels/cwise_ops_gpu_common.cu.h +++ b/tensorflow/core/kernels/cwise_ops_gpu_common.cu.h @@ -20,10 +20,11 @@ limitations under the License. #ifndef TENSORFLOW_CORE_KERNELS_CWISE_OPS_GPU_COMMON_CU_H_ #define TENSORFLOW_CORE_KERNELS_CWISE_OPS_GPU_COMMON_CU_H_ -#define EIGEN_USE_GPU - +#define _USE_MATH_DEFINES +#include <cmath> #include <complex> +#define EIGEN_USE_GPU #include "tensorflow/core/framework/tensor_types.h" #include "tensorflow/core/kernels/cwise_ops.h" #include "tensorflow/core/platform/types.h"