google / google/flax

[docs] Functional API example code does not use Functional API functions

Open
#4,602 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
7.3k
Forks
833
Avg merge
5h 11m
Merged PRs (30d)
5

Description

The docs [here](https://flax.readthedocs.io/en/latest/nnx_basics.html#the-flax-functional-api) state "The Flax NNX Functional API consists of three basic methods: [nnx.split](https://flax.readthedocs.io/en/latest/api_reference/flax.nnx/graph.html#flax.nnx.split), [nnx.merge](https://flax.readthedocs.io/en/latest/api_reference/flax.nnx/graph.html#flax.nnx.merge), and [nnx.update](https://flax.readthedocs.io/en/latest/api_reference/flax.nnx/graph.html#flax.nnx.update). ... Below is an example of of StatefulLinear [nnx.Module](https://flax.readthedocs.io/en/latest/api_reference/flax.nnx/module.html) that uses the Functional API."

But the code that follows does not use `nnx.split`, `nnx.merge`, or `nnx.update`.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.