

def validate(self, fgraph):
    '\n        Return None.\n\n        Raise InconsistencyError when\n        a) orderings() raises an error\n        b) orderings cannot be topologically sorted.\n\n        '
    if self.destroyers:
        ords = self.orderings(fgraph)
        if _contains_cycle(fgraph, ords):
            raise InconsistencyError('Dependency graph contains cycles')
    else:
        pass
    return True

dataset/ETHPy150Open rizar/attention-lvcsr/libs/Theano/theano/gof/destroyhandler.py DestroyHandler.validate/original