WhileLoop ========= Constructs a loop that executes body_fn while cond_fn is true. **Abstract Signature:** ``WhileLoop(cond_fn: Callable, body_fn: Callable, init_val)`` .. raw:: html

PyTorch

API: torch.while_loop
Strategy: Direct Mapping

JAX (Core)

API: jax.lax.while_loop
Strategy: Direct Mapping

NumPy

API:
Strategy: Custom / Partial

Keras

API: keras.ops.while_loop
Strategy: Direct Mapping

TensorFlow

API: tf.while_loop
Strategy: Direct Mapping

Apple MLX

API:
Strategy: Custom / Partial

Flax NNX

API: jax.lax.while_loop
Strategy: Direct Mapping

PaxML / Praxis

API: jax.lax.while_loop
Strategy: Direct Mapping