import tensorflow as tf
import numpy as np
import input_data
mnist = input_data.read_data_sets('MNIST_data',one_hot=True)
def add_layer(inputs,in_size,out_size,n_layer,activation_function=None):
layer_name = 'layer%s' %n_layer
with tf.name_scope(layer_name):
with tf.name_scope('weights'): #tf.name_scope()创建结点
Weights = tf.Variable(tf
tensorflow中mnist识别和结果可视化
最新推荐文章于 2023-08-04 01:14:35 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)