jax.pallas.tpu.matmul_pop_fifo

jax.pallas.tpu.matmul_pop_fifo#

jax.pallas.tpu.matmul_pop_fifo(shape, dtype, mxu_index)[source]#

Pops the result of a matrix multiplication from the result FIFO of the chosen MXU.

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

`.. warning:: This operation can result in a hardware error if the result FIFO is empty and there are no `matmul_lhs_fifo` ops in-flight. The kernel must not leave any data in the result FIFO upon exit. `

Parameters:
  • shape (tuple[int, int]) – The shape of the result.

  • dtype (jax.typing.DTypeLike) – The dtype of the result.

  • mxu_index (int) – The MXU to use.

Return type:

jax.Array