xlnstorch.autograd.raise_fanout_error#
- xlnstorch.autograd.raise_fanout_error(offenders)#
Turn the offenders list returned by find_fanout into a human-readable error message and raise a RuntimeError.
- Parameters:
offenders (Iterable[Dict[str, Any]]) – Each dict must have exactly the keys inserted by find_fanout: - ‘child’ : the Function node with >1 incoming edges - ‘edge_count’ : total number of incoming edges (int) - ‘parents’ : set of distinct parent nodes
- Raises:
RuntimeError – If the offenders list is empty, this function does nothing. If the list is not empty, it raises a RuntimeError with a detailed message about each offender node and its parents.
- Return type:
None