Skip to main content

decline_reason

Function decline_reason 

Source
pub fn decline_reason(k: &FusedKernel, inputs: &[Array]) -> Option<Decline>
Expand description

Why this kernel would decline these inputs, or None if it would run.

A read-only mirror of the preconditions at the top of run: it looks at shapes and dtypes only, never at values, so the one thing it cannot see in advance is an overflow — which is what is left when every precondition holds.