Skip to content

Commit

Permalink
Clarify documentation around scope hierarchy and inheriting.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 700991340
  • Loading branch information
Gin-Config Team authored and copybara-github committed Nov 28, 2024
1 parent a966a40 commit 416fbff
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,9 @@ output.

Any parameters set on the "root" (unscoped) function name are inherited by
scoped variants (unless explicitly overridden), so in the above example both the
generator and the discriminator use the `tf.nn.tanh` activation function.
generator and the discriminator use the `tf.nn.tanh` activation function. This
works in general for a hierarchy of scopes, e.g., if we are in a scope named
`a/b` the config will inherit all the values from scope `a`.

### 5. Full hierarchical configuration {#full-hierarchical}

Expand Down
4 changes: 3 additions & 1 deletion docs/walkthrough.md
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,9 @@ output.

Any parameters set on the "root" (unscoped) function name are inherited by
scoped variants (unless explicitly overridden), so in the above example both the
generator and the discriminator use the `tf.nn.tanh` activation function.
generator and the discriminator use the `tf.nn.tanh` activation function. This
works in general for a hierarchy of scopes, e.g., if we are in a scope named
`a/b` the config will inherit all the values from scope `a`.

### 5. Full hierarchical configuration {#full-hierarchical}

Expand Down

0 comments on commit 416fbff

Please sign in to comment.