flax.linen.enable_named_call#

flax.linen.enable_named_call()[source]#

Enables named call wrapping for labelling profile traces.

When named call wrapping is enabled all JAX ops executed in a Module will be wrapped with jax.named_call. The Module class name will show up around the operations belonging to that Module in the Tensorboard profiling UI, simplifying the profiling process.

Note that jax.named_call only works for compiled functions (e.g.: using jax.jit or jax.pmap).