google / google/flax

Write design note: Explain how Linen manages RNGs

Open
#878 3 comments 3 reactions 2 assignees Assigned to @cgarciae View on GitHub
Priority: P2 - no schedule
Dominant language
Jupyter Notebook
Stars
7.3k
Forks
833
Avg merge
5h 11m
Merged PRs (30d)
5

Description

Flax automatically splits RNGs for submodules by folding in the name of the submodule: https://github.com/google/flax/blob/master/flax/core/scope.py#L63

I couldn't find a place in the documentation where we explain this, but it seems quite useful to have it documented somewhere outside of `flax.core`.

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.