instadeepai/Mava

[FEATURE] Create an `add_batch_dim` method

Open

#1.153 aberto em 9 de jan. de 2025

Ver no GitHub
 (0 comments) (0 reactions) (0 assignees)Python (122 forks)auto 404
enhancementgood first issue

Métricas do repositório

Stars
 (922 stars)
Métricas de merge de PR
 (Métricas PR pendentes)

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

Guia do colaborador