提交 1b7e1c7c 编写于 作者: A A. Unique TensorFlower 提交者: TensorFlower Gardener

Get rid of to_int64 deprecation warning in the logs.

PiperOrigin-RevId: 225256193
上级 31c0bed4
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册