From 1b7e1c7c39e677dbd8a7d326666ba3e273faf46d Mon Sep 17 00:00:00 2001 From: "A. Unique TensorFlower" Date: Wed, 12 Dec 2018 14:35:48 -0800 Subject: [PATCH] Get rid of to_int64 deprecation warning in the logs. PiperOrigin-RevId: 225256193 --- tensorflow/python/ops/math_ops.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tensorflow/python/ops/math_ops.py b/tensorflow/python/ops/math_ops.py index e2b634ee8f8..e656998b707 100644 --- a/tensorflow/python/ops/math_ops.py +++ b/tensorflow/python/ops/math_ops.py @@ -1465,7 +1465,7 @@ def count_nonzero_v2(input, # pylint: disable=redefined-builtin return cast( reduce_sum( # int64 reduction happens on GPU - to_int64(gen_math_ops.not_equal(input, zero)), + cast(gen_math_ops.not_equal(input, zero), dtypes.int64), axis=axis, keepdims=keepdims), dtype=dtype) -- GitLab