Open lordchao opened 6 years ago
你好 我运行代码的时候会出现如下错误:
ValueError: Cannot reshape a tensor with 512 elements to shape [128,6,6] (4608 elements) for 'model/Reshape_10' (op: 'Reshape') with input shapes: [256,2], [3].
transitions = tf.reshape(tf.concat(0, [transitions] * self.batch_size), [self.batch_size, 6, 6])
我的数据输入格式是按照文档中的格式来的。
是我输入数据格式不对,已经好了。。
你好 我运行代码的时候会出现如下错误:
ValueError: Cannot reshape a tensor with 512 elements to shape [128,6,6] (4608 elements) for 'model/Reshape_10' (op: 'Reshape') with input shapes: [256,2], [3].
transitions = tf.reshape(tf.concat(0, [transitions] * self.batch_size), [self.batch_size, 6, 6])
我的数据输入格式是按照文档中的格式来的。