tff.framework.check_broadcast_not_dependent_on_aggregate

View source on GitHub

Raises if any broadcast in tree ingests the result of an aggregate.

We explicitly check for this pattern since if it occurs, tree is not reducible to broadcast-map-aggregate form.

tree Instance of building_blocks.ComputationBuildingBlock to check for the presence of a broadcast which ingests the result of an aggregate.

ValueError If a broadcast in tree consumes the result of an aggregate.