Skip to content

Commit 5c12985

Browse files
committed
doc
1 parent 400c903 commit 5c12985

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

nn/loop.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,9 @@ def _map_name_ctx_to_prev_layer_ref(name_ctx: nn.NameCtx, initial: nn.Tensor) ->
515515

516516
def get(self):
517517
"""
518-
Return prev or current value
518+
Return prev or current value of the current loop iteration,
519+
depending on whether assign() already has been called or not.
520+
This is called (only) inside a loop.
519521
"""
520522
assert self.name_ctx is not None
521523
if not self.loop.has_entered_scope:

0 commit comments

Comments
 (0)