Skip to main content

Module nn

Module nn 

Source
Expand description

Functions of jax.nn that environments and models use.

Functionsยง

one_hot
jax.nn.one_hot(x, num_classes): a new last dimension of num_classes elements, one where it equals x and zero elsewhere (all zero for x out of range).