instadeepai/Mava

[FEATURE] Create an `add_batch_dim` method

Open

#1153 aperta il 9 gen 2025

Vedi su GitHub
 (0 commenti) (0 reazioni) (0 assegnatari)Python (122 fork)auto 404
enhancementgood first issue

Metriche repository

Star
 (922 star)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

All over Mava we have statements like tree.map(lambda x: x[jnp.newaxis], pytree) I think it would make it a lot clearer if we had an add_batch_dim method in utils.jax_utils

Guida contributor