单个神经元前向计算实现mnist手写数字识别 代码 import tensorflow as tf import tensorflow.examples.tutorials.mnist.input_data as input_data mnist = input_data.read_data_sets(data/,one_hot=True) #next_batch()实现方法会对内部数据先进行洗牌操作! batch_image_xs, batch_lables_ys = mnist.train.next_batch(batch_size=10) #每张图片有28*28 = 784个像素点