jax.experimental.pallas.fuser.make_scalar_prefetch_handler

jax.experimental.pallas.fuser.make_scalar_prefetch_handler#

jax.experimental.pallas.fuser.make_scalar_prefetch_handler(*args)[source]#

Creates a handler function that extracts a fusion’s scalar prefetch values.

Parameters:

*args – Sequence of indices or keys used to index sequentially into the kernel’s scalar_prefetch argument tuple.

Returns:

A callable scalar_prefetch_getter(*sp_inputs) that indexes into sp_inputs along args to return a single fusion’s scalar prefetch group.