instadeepai/Mava

[FEATURE] Create an `add_batch_dim` method

Open

#1 153 ouverte le 9 janv. 2025

Voir sur GitHub
 (0 commentaires) (0 réactions) (0 assignés)Python (122 forks)auto 404
enhancementgood first issue

Métriques du dépôt

Stars
 (922 stars)
Métriques de merge PR
 (Métriques PR en attente)

Description

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

Guide contributeur