ValueError: Cannot feed value of shape (100,) for Tensor 'y-output:0', which

我们在读取mnist的input_data数据时要执行one-hot为True

from tensorflow.examples.tutorials.mnist import input_data
mnist = input_data.read_data_sets("/tmp/data", one_hot=True)

在多类场景下,onehot=true表示,只有一个元素的值是1,其他元素的值是0, 一个长度为n的数组,只有一个元素是1.0,其他元素是0.0。
 

你可能感兴趣的:(ValueError: Cannot feed value of shape (100,) for Tensor 'y-output:0', which)