From 6ac005515fb2520959295c401983596e8bcbd50b Mon Sep 17 00:00:00 2001 From: "A. Unique TensorFlower" Date: Wed, 18 Dec 2019 15:28:39 -0800 Subject: [PATCH] Make sure math constants are defined for cwise ops. PiperOrigin-RevId: 286277617 Change-Id: Ief36745883c36d48a0aad4f49aee806573502cc1 --- tensorflow/core/kernels/cwise_ops_common.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tensorflow/core/kernels/cwise_ops_common.h b/tensorflow/core/kernels/cwise_ops_common.h index f23d998a3f9..f2d0a95e20f 100644 --- a/tensorflow/core/kernels/cwise_ops_common.h +++ b/tensorflow/core/kernels/cwise_ops_common.h @@ -17,6 +17,8 @@ limitations under the License. #define TENSORFLOW_CORE_KERNELS_CWISE_OPS_COMMON_H_ // See docs in ../ops/math_ops.cc. +#define _USE_MATH_DEFINES +#include #define EIGEN_USE_THREADS