我有一个Ubuntu对话框语料库的.tfrecords
文件。我试着读入整个数据集,这样我就可以把上下文和话语分成几批。使用tf.parse_single_example
我可以在一个例子中阅读。我尝试使用tf.parse_example
,但得到以下错误
ValueError: Shape must be rank 1 but is rank 0 for 'ParseExample/ParseExample' (op: 'ParseExample') with input shapes: [], [0], [], [], [], [], [], [0], [0], [0], [0], [0].
我不知道该怎么解释。我用来找出错误的代码-
^{pr2}$有什么想法吗
我刚才也有类似的问题。尝试在序列化的_示例周围加上括号,将其转换为一个列表:
使用tf.parse_示例您需要首先批处理示例:
相关问题 更多 >
编程相关推荐