build_mesh¶
- jaxrens.sampling.mesh.build_mesh(axis_name, n_devices)[source]¶
Return a 1-D
jax.sharding.Meshnamed axis_name over the first n_devices local devices.Single place that replaces the
Mesh(jax.local_devices()[:n], (name,))construction previously repeated innested_sampling.pyandbatch_descriptor.py.