Skip to main content

demand

Function demand 

Source
pub fn demand(image: &Image, output: Region) -> Result<Vec<(NodeId, Region)>>
Expand description

The regions each node of image’s graph would be asked for, for diagnostics.

This walks the same inverse mapping the evaluator uses, without computing any pixels — useful for asserting in tests that an op’s demand propagation is what it claims, and a stepping stone to M2’s scheduling.

§Errors

Propagates Op::input_regions.