在使用tensorflow过程中,API返回值经常为tf.string类型,在此记录下官方对tf.tring的定义:
tf.string:Variable length byte arrays. Each element of a Tensor is a byte array。
tensoflow中的tf.string类型不可进行切片
本文详细介绍了TensorFlow中tf.string类型的特性及其官方定义,指出tf.string为变长字节数组,每个张量元素都是一个字节数组,并说明了tf.string类型不支持切片操作。
在使用tensorflow过程中,API返回值经常为tf.string类型,在此记录下官方对tf.tring的定义:
tf.string:Variable length byte arrays. Each element of a Tensor is a byte array。
tensoflow中的tf.string类型不可进行切片

被折叠的 条评论
为什么被折叠?