Make sure math constants are defined for cwise ops.

PiperOrigin-RevId: 286277617
Change-Id: Ief36745883c36d48a0aad4f49aee806573502cc1
This commit is contained in:
A. Unique TensorFlower 2019-12-18 15:28:39 -08:00 committed by TensorFlower Gardener
parent 994c6e8dfe
commit 6ac005515f

View File

@ -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 <cmath>
#define EIGEN_USE_THREADS