赞
踩
参考 TensorFlow中的数据类型 - 云+社区 - 腾讯云
目录
Tensorflow中,主要有以下几种数据类型(dtype),在旧版本中,不用加tf也能使用。
- tf.int8:8位整数。
-
- tf.int16:16位整数。
-
- tf.int32:32位整数。
-
- tf.int64:64位整数。
- tf.uint8:8位无符号整数。
-
- tf.uint16:16位无符号整数。
- tf.float16:16位浮点数。
-
- tf.float32:32位浮点数。
-
- tf.float64:64位浮点数。
-
- tf.double:等同于tf.float64。
tf.string:字符串。
tf.bool:布尔型。
- tf.complex64:64位复数。
-
- tf.complex128:128位复数。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。