【发布时间】:2016-03-09 03:11:03
【问题描述】:
我仍在尝试使用自己的图像数据运行 Tensorflow。 我能够从这个示例link 使用 conevert_to() 函数创建一个 .tfrecords 文件@
现在我想使用来自该示例 link 的代码来训练网络。
但它在 read_and_decode() 函数中失败。我对该功能的更改是:
label = tf.decode_raw(features['label'], tf.string)
错误是:
TypeError: DataType string for attr 'out_type' not in list of allowed values: float32, float64, int32, uint8, int16, int8, int64
那么如何 1) 阅读和 2) 在 tensorflow 中使用字符串标签进行训练。
【问题讨论】:
标签: python labels tensorflow