def sort_schedule_fn(*cmps):
    dependence = make_dependence_cmp()
    cmps = (dependence,) + cmps

    def schedule(fgraph):
        """
        Order nodes in a FunctionGraph.

        """
        return sort_apply_nodes(fgraph.inputs, fgraph.outputs, cmps)
    return schedule
Make a schedule function from comparators.
dataset/ETHPy150Open rizar/attention-lvcsr/libs/Theano/theano/gof/sched.py/sort_schedule_fn