import tensorflow as tf

        #else:
        #    self.new_logits = self.logits

        self.grads = grads
        self.grads_norm = tf.global_norm(grads)

        #see https://www.tensorflow.org/api_docs/python/tf/train/Optimizer#processing_gradients_before_applying_them
        #if clipping_method == "clip_by_global_norm":
