@staticmethod
    def print_profile(stream, prof, level=0):
        blanc = ('    ' * level)
        print(blanc, "FusionOptimizer", file=stream)
        print(blanc, " nb_iter", prof[1], file=stream)
        print(blanc, " nb_replacement", prof[2], file=stream)
        print(blanc, " nb_inconsistency_replace", prof[3], file=stream)
        print(blanc, " validate_time", prof[4], file=stream)
        print(blanc, " callback_time", prof[5], file=stream)
        if 1 > prof[5]:
            print(blanc, " callbacks_time", file=stream)
            for i in sorted(iteritems(prof[6]), key=lambda a: a[1]):
                if i[1] > 0:
                    print(i)
        print(blanc, " time_toposort", prof[7], file=stream)
dataset/ETHPy150Open rizar/attention-lvcsr/libs/Theano/theano/tensor/opt.py/FusionOptimizer.print_profile/swapped operands of `>`