import tensorflow as tf

        l1=tf.nn.relu(l1)
        out = tf.matmul(l1, self.w2)+self.b2
        return out

    def test_inference(self,images):
        images=tf.cast(images,tf.float32)/255.0
        l1 = tf.matmul(images, self.w1)+self.b1
        l1=tf.nn.relu(l1)
        out = tf.matmul(l1, self.w2)+self.b2
        return out
    
    def valid_inference(self,images):
        images=tf.cast(images,tf.float32)/255.0
        l1 = tf.matmul(images, self.w1)+self.b1
