Movatterモバイル変換


[0]ホーム

URL:


Skip to main content
Ctrl+K
JAX  documentation - Home

jax.numpy.zeros

Contents

jax.numpy.zeros#

jax.numpy.zeros(shape,dtype=None,*,device=None,out_sharding=None)[source]#

Create an array full of zeros.

JAX implementation ofnumpy.zeros().

Parameters:
Returns:

Array of the specified shape and dtype, with the given device/sharding if specified.

Return type:

Array

Examples

>>>jnp.zeros(4)Array([0., 0., 0., 0.], dtype=float32)>>>jnp.zeros((2,3),dtype=bool)Array([[False, False, False],       [False, False, False]], dtype=bool)
Contents

[8]ページ先頭

©2009-2025 Movatter.jp