一、tensor属性:tf.DType和tf.TensorShape
(1)tensor类型:tf.DType
#部分类型
tf.float16: 16-bit half-precision floating-point.
tf.float32: 32-bit single-precision floating-point.
tf.float64: 64-bit double-precision floating-point.
tf.int8: 8-bit signed integer.
tf.uint8: 8-bit unsigned integer.
tf.uint16: 16-bit unsigned integer.
tf.int16: 16-bit signed integer.
tf.int32: 32-bit signed integer.
tf.int64: 64-bit signed integer.
tf.bool: Boolean.
tf.string: String.
tf.resource: Handle to a mutable resource.
(2)tensor形状:shape
三种类型:
- Fully-known shape: 维度确定,每一维长度确定。 如:[768,100]
- Partially-known shape: 维度确定ÿ