tensorflow-TFRecord报错ValueError: Protocol message Feature has no "feature" field.

Posted bestexpert

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了tensorflow-TFRecord报错ValueError: Protocol message Feature has no "feature" field.相关的知识,希望对你有一定的参考价值。

编写代码用TFRecord数据结构存储数据集信息是报错:ValueError: Protocol message Feature has no "feature" field.或和这个错误非常类似的错误。

请检查

features=tf.train.Features(feature={...}

里面有没有单子写错。如果有一个单词写错都会报和上面类似的错误

以上是关于tensorflow-TFRecord报错ValueError: Protocol message Feature has no "feature" field.的主要内容,如果未能解决你的问题,请参考以下文章