jax.pallas.tpu.matmul_pop

Contents

jax.pallas.tpu.matmul_pop#

jax.pallas.tpu.matmul_pop(acc)[source]#

Returns the result of a matrix multiplication from a specific MXU and zeroes the accumulator.

If the result is not ready yet (the MXU is still busy), the operation blocks.

`{warning} The kernel must not leave any data in the accumulator upon exit. `

The MXU index is deduced from the provided accumulator.

Parameters:

acc (Ref) – The accumulator to pop.

Return type:

jax.Array