Skip to content

Commit

Permalink
Update thunder/transforms/materialization.py
Browse files Browse the repository at this point in the history
Co-authored-by: Luca Antiga <luca@lightning.ai>
  • Loading branch information
t-vi and lantiga authored Aug 19, 2024
1 parent 625427f commit 40ce74c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion thunder/transforms/materialization.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def module_init_from_original_module_init(transform: MaterializationTransform, t
processed_names = set()

# Shared parameters in PyTorch eager are parameters of module which have different name but share the underlying tensor.
# For shared parameter, we replace all occurence shared parameter with it's corresponding `base` parameter.
# For shared parameter, we replace all occurence shared parameter with its corresponding `base` parameter.
# In our implementation `base` parameter is the parameter and corresponding name which we see the first time while
# iterating our parameters (see below). We track subsequent parameter which share the underlying Tensor with this `base` parameter
# in `shared_params_name` dictionary.
Expand Down

0 comments on commit 40ce74c

Please sign in to comment.