以下人工神经网络的输入层节点数是多少?

What is the number of nodes in input layer of the following artificial neural network?

这是针对 MNIST 数据集

model = Sequential()    
model.add(Flatten(input_shape=((28,28))))             

不flatten创建输入层有728个节点,这样每个像素值都输入到neurons/nodes?

是的,展平采用形状的多维张量和 return 向量张量,因此输出形状将是每个维度的乘积。在您的示例中,输出的大小为 28 * 28 = 784.