import numpy as np import tensorflow as tf from tensorflow.examples.tutorials.mnist import input_data def add_layer(inputs,in_size,out_size,activation_function=None): W=tf.Variable(tf.random_normal([in_size,out_size])) b=tf.Variable(tf.zeros([1,out_s…