import tensorflow as tf

with tf.variable_scope("FCoptimize", reuse=None):
    loss = tf.reduce_mean(tf.nn.softmax_cross_entropy_with_logits(logits= logit, labels=Y)
                          + l2_reg_lambda * l2_loss)
    optimizer = tf.train.AdamOptimizer(learning_rate).minimize(loss)


