flax.linen# Linen is the Flax Module system. Read more about our design goals in the Linen README. Module Module apply() init() init_with_output() intercept_methods() share_scope() Init/Apply apply() init() init_with_output() Layers Linear Modules Pooling Normalization Combinators Stochastic Attention Recurrent BatchApply Activation functions PReLU celu() elu() gelu() glu() hard_sigmoid() hard_silu() hard_swish() hard_tanh() leaky_relu() log_sigmoid() log_softmax() logsumexp() one_hot() relu() selu() sigmoid() silu() soft_sign() softmax() softplus() standardize() swish() tanh() Initializers constant() delta_orthogonal() glorot_normal() glorot_uniform() he_normal() he_uniform() kaiming_normal() kaiming_uniform() lecun_normal() lecun_uniform() normal() truncated_normal() ones() ones_init() orthogonal() uniform() variance_scaling() xavier_normal() xavier_uniform() zeros() zeros_init() Transformations vmap() scan() jit() remat() remat_scan() map_variables() jvp() vjp() custom_vjp() while_loop() cond() switch() Inspection tabulate() Variable dictionary Variable SPMD Partitioned() with_partitioning() get_partition_spec() get_sharding() LogicallyPartitioned() logical_axis_rules() set_logical_axis_rules() get_logical_axis_rules() logical_to_mesh_axes() logical_to_mesh() logical_to_mesh_sharding() with_logical_constraint() with_logical_partitioning() Decorators compact() nowrap() Profiling enable_named_call() disable_named_call() override_named_call()