赞
踩
TensorFlow中的数据类型有以下几种:
- # bool
- tf.bool
1)无符号整型
- # uint
- tf.uint8
- tf.uint16
- tf.uint32
- tf.uint64
2)有符号整型
- # int
- tf.int8
- tf.int16
- tf.int32
- tf.int64
- # float
- tf.float16
- tf.float32
- tf.float64
- # string
- tf.string
- # complex
- tf.complex64
- tf.complex128
- # truncated float
- # 16-bit truncated floating-point
- tf.bfloat16
- # quantized uint
- # quantized 8-bit unsigned integer
- # quantized 16-bit unsigned integer
- tf.quint8
- tf.quint16
- # quantized int
- # quantized 8-bit signed integer
- # quantized 16-bit signed integer
- # quantized 32-bit signed integer
- tf.qint8
- tf.qint16
- tf.qint32
- # variant
- tf.variant
【1】Tensorflow tf.dtypes.DType:https://www.tensorflow.org/api_docs/python/tf/dtypes/DType
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。