jax.experimental.pallas.mosaic_gpu.load

Contents

jax.experimental.pallas.mosaic_gpu.load#

jax.experimental.pallas.mosaic_gpu.load(src, *, layout=None, optimized=True)[source]#

Loads from a reference into an array with the specified layout.

Parameters:
  • src (_Ref) – The reference to load from. Can be either in SMEM or GMEM.

  • layout (SomeLayout | None) – The optional layout to use for the resulting array.

  • optimized (bool) – If True, a compilation error will be raised if no optimized implementation for the load is available.

Returns:

The loaded array.

Return type:

jax.Array