def loss(self, logits, labels): #logit的shape= [batch]
loss = None
with tf.variable_scope('Hidden', reuse=True):
W1 = tf.get_variable('W1')
b1 = tf.get_variable('b1')
with tf.variable_scope('Output', reuse=True):
W2 = tf.get_variable('W2')
loss2 = tf.nn.l2_loss(W1) + tf.nn.l2_loss(b1) + tf.nn