import tensorflow as tf

                    all_trainable_weights_pi = tf.trainable_variables('model/pi')
                    regularization_penalty_pi = tf.contrib.layers.apply_regularization(regularizerpi, all_trainable_weights_pi)
