def create_summaries(self, verbose=2):
        """ Create summaries with `verbose` level """

        summ_collection = self.name + "_training_summaries"

        if verbose in [3]:
            # Summarize activations
            activations = tf.get_collection(tf.GraphKeys.ACTIVATIONS)
            summarize_activations(activations, summ_collection)
        if [2, 3] in verbose:
            # Summarize variable weights
            summarize_variables(self.train_vars, summ_collection)
        if verbose in [1, 2, 3]:
            # Summarize gradients
            summarize_gradients(self.grad, summ_collection)

        self.summ_op = tf.merge_summary(tf.get_collection(summ_collection))
dataset/ETHPy150Open tflearn/tflearn/tflearn/helpers/trainer.py/TrainOp.create_summaries/swapped operands of `in`