jax.experimental.pallas.estimate_cost#
- jax.experimental.pallas.estimate_cost(fun, *args, **kwargs)[source]#
Computes a cost estimate for the given function.
- Parameters:
fun – The function to compute the cost estimate for.
*args – The arguments to the function. Can be jax.ShapeDtypeStruct or jax.Array.
**kwargs – The keyword arguments to the function.
- Returns:
A pallas_core.CostEstimate object containing the cost estimate.
- Return type: