Movatterモバイル変換


[0]ホーム

URL:


Skip to main content
Ctrl+K
JAX  documentation - Home

jax.Array.astype

jax.Array.astype#

abstractArray.astype(dtype,copy=False,device=None)[source]#

Copy the array and cast to a specified dtype.

This is implemented viajax.lax.convert_element_type(), which mayhave slightly different behavior thannumpy.ndarray.astype() insome cases. In particular, the details of float-to-int and int-to-floatcasts are implementation dependent.

Parameters:
Return type:

Array


[8]ページ先頭

©2009-2025 Movatter.jp