mirror of
https://github.com/DifferentiableUniverseInitiative/JaxPM.git
synced 2025-06-15 02:11:12 +00:00
Format
This commit is contained in:
parent
41ae41ace3
commit
49c93aacf6
2 changed files with 7 additions and 2 deletions
|
@ -166,7 +166,7 @@ def uniform_particles(mesh_shape, sharding=None):
|
|||
axis=-1)
|
||||
|
||||
|
||||
def normal_field(mesh_shape, seed, sharding=None , dtype='float32'):
|
||||
def normal_field(mesh_shape, seed, sharding=None, dtype='float32'):
|
||||
"""Generate a Gaussian random field with the given power spectrum."""
|
||||
gpu_mesh = sharding.mesh if sharding is not None else None
|
||||
if gpu_mesh is not None and not (gpu_mesh.empty):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue