From 4a09d23ea3346c449f4f42a447347c1f0f9a0cd0 Mon Sep 17 00:00:00 2001 From: koock yoon Date: Fri, 31 May 2019 21:56:36 +0900 Subject: [PATCH] changed from tf.cast to tf.dtypes.cast in example for tf.dtypes.cast --- 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 d5dfc646cd8ac3..c68c235828b1cb 100644 --- a/tensorflow/python/ops/math_ops.py +++ b/tensorflow/python/ops/math_ops.py @@ -640,7 +640,7 @@ def cast(x, dtype, name=None): ```python x = tf.constant([1.8, 2.2], dtype=tf.float32) - tf.cast(x, tf.int32) # [1, 2], dtype=tf.int32 + tf.dtypes.cast(x, tf.int32) # [1, 2], dtype=tf.int32 ``` The operation supports data types (for `x` and `dtype`) of