Skip to main content

try_normalized_program_cache_digest

Function try_normalized_program_cache_digest 

Source
pub fn try_normalized_program_cache_digest(
    program: &Program,
) -> Result<[u8; 32], String>
Expand description

Return the normalized program digest used by backend pipeline caches.

Thin forwarder: the digest and its per-Program memo are owned by vyre_foundation::ir::Program::try_normalized_cache_digest, so the algorithm has exactly one implementation and is computed at most once per program value instead of once per dispatch.

ยงErrors

Returns when the program contains an IR type or node shape that cannot be serialized into stable cache identity. Dispatch admission should surface the error rather than panic or generate a lossy cache key.