jax.profiler.save_device_memory_profile#
- jax.profiler.save_device_memory_profile(filename, backend=None)[source]#
Collects a device memory profile and writes it to a file.
save_device_memory_profile()
is a convenience wrapper arounddevice_memory_profile()
that saves its output to afilename
. See thedevice_memory_profile()
documentation for more information.- Parameters:
filename – the filename to which the profile should be written.
backend (str | None | None) – optional; the name of the JAX backend for which the device memory profile should be collected.
- Return type:
None