rocm_jax/docs/jax.rst

264 lines
4.0 KiB
ReStructuredText
Raw Permalink Normal View History

.. currentmodule:: jax
Public API: ``jax`` package
===========================
Subpackages
-----------
.. toctree::
2023-01-18 10:59:42 -08:00
:maxdepth: 1
jax.numpy
jax.scipy
jax.lax
jax.random
jax.sharding
jax.debug
jax.dlpack
jax.distributed
2023-02-13 15:07:02 -08:00
jax.dtypes
2024-12-20 11:26:04 +00:00
jax.ffi
2023-01-18 10:59:42 -08:00
jax.flatten_util
jax.image
jax.nn
jax.ops
jax.profiler
jax.stages
2025-01-23 16:04:35 -08:00
jax.test_util
jax.tree
2023-01-18 10:59:42 -08:00
jax.tree_util
2023-02-13 15:53:08 -08:00
jax.typing
jax.export
jax.extend
2023-01-18 10:59:42 -08:00
jax.example_libraries
jax.experimental
2021-09-27 09:48:27 -07:00
.. toctree::
:hidden:
jax.lib
2023-01-18 10:59:42 -08:00
Configuration
-------------
.. autosummary::
:toctree: _autosummary
config
check_tracer_leaks
checking_leaks
debug_nans
debug_infs
default_device
default_matmul_precision
default_prng_impl
enable_checks
enable_custom_prng
enable_custom_vjp_by_custom_transpose
log_compiles
numpy_rank_promotion
transfer_guard
.. _jax-jit:
2019-07-20 14:40:31 +01:00
Just-in-time compilation (:code:`jit`)
--------------------------------------
.. autosummary::
:toctree: _autosummary
jit
disable_jit
ensure_compile_time_eval
make_jaxpr
eval_shape
2023-03-21 13:53:20 -07:00
ShapeDtypeStruct
device_put
2021-07-04 19:55:45 +08:00
device_get
default_backend
named_call
named_scope
block_until_ready
copy_to_host_async
2024-10-09 13:32:30 -04:00
make_mesh
.. _jax-grad:
Automatic differentiation
-------------------------
.. autosummary::
:toctree: _autosummary
grad
value_and_grad
2024-09-26 05:09:47 -07:00
jacobian
jacfwd
jacrev
hessian
jvp
linearize
linear_transpose
vjp
2023-11-20 13:26:52 -08:00
custom_gradient
closure_convert
2020-06-25 07:26:26 -07:00
checkpoint
Customization
-------------
``custom_jvp``
~~~~~~~~~~~~~~
.. autosummary::
:toctree: _autosummary
custom_jvp
custom_jvp.defjvp
custom_jvp.defjvps
``custom_vjp``
~~~~~~~~~~~~~~
.. autosummary::
:toctree: _autosummary
custom_vjp
custom_vjp.defvjp
``custom_batching``
~~~~~~~~~~~~~~~~~~~
.. autosummary::
:toctree: _autosummary
custom_batching.custom_vmap
custom_batching.custom_vmap.def_vmap
custom_batching.sequential_vmap
jax.Array (:code:`jax.Array`)
-----------------------------
.. autosummary::
:toctree: _autosummary
2023-02-13 15:53:08 -08:00
Array
make_array_from_callback
make_array_from_single_device_arrays
make_array_from_process_local_data
Array properties and methods
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.. autosummary::
:toctree: _autosummary
Array.addressable_shards
Array.all
Array.any
Array.argmax
Array.argmin
Array.argpartition
Array.argsort
Array.astype
Array.at
Array.choose
Array.clip
Array.compress
Array.committed
Array.conj
Array.conjugate
Array.copy
Array.copy_to_host_async
Array.cumprod
Array.cumsum
Array.device
Array.diagonal
Array.dot
Array.dtype
Array.flat
Array.flatten
Array.global_shards
Array.imag
Array.is_fully_addressable
Array.is_fully_replicated
Array.item
Array.itemsize
Array.max
Array.mean
Array.min
Array.nbytes
Array.ndim
Array.nonzero
Array.prod
Array.ptp
Array.ravel
Array.real
Array.repeat
Array.reshape
Array.round
Array.searchsorted
Array.shape
Array.sharding
Array.size
Array.sort
Array.squeeze
Array.std
Array.sum
Array.swapaxes
Array.take
Array.to_device
Array.trace
Array.transpose
Array.var
Array.view
Array.T
Array.mT
Vectorization (:code:`vmap`)
----------------------------
.. autosummary::
:toctree: _autosummary
vmap
numpy.vectorize
Parallelization (:code:`pmap`)
------------------------------
.. autosummary::
:toctree: _autosummary
pmap
devices
local_devices
process_index
device_count
local_device_count
process_count
process_indices
2022-08-24 14:04:47 -07:00
Callbacks
---------
.. autosummary::
:toctree: _autosummary
pure_callback
experimental.io_callback
2022-08-24 14:04:47 -07:00
debug.callback
debug.print
2022-09-12 15:39:33 -07:00
Miscellaneous
-------------
.. autosummary::
:toctree: _autosummary
Device
2022-09-12 15:39:33 -07:00
print_environment_info
live_arrays
clear_caches