instadeepai/Mava

[FEATURE] Create an `add_batch_dim` method

Open

#1,153 opened on Jan 9, 2025

View on GitHub
 (0 comments) (0 reactions) (0 assignees)Python (122 forks)auto 404
enhancementgood first issue

Repository metrics

Stars
 (922 stars)
PR merge metrics
 (PR metrics pending)

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

Contributor guide