instadeepai/Mava

[FEATURE] Create an `add_batch_dim` method

Open

#1,153 opened on 2025年1月9日

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)

説明

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

コントリビューターガイド