Skip to content

Commit 9cce023

Browse files
authored
Update intermediate_source/per_sample_grads.py
1 parent 311059c commit 9cce023

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

intermediate_source/per_sample_grads.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ def compute_loss(params, buffers, sample, target):
169169
# results of hand processing each one individually:
170170

171171
for name, ft_per_sample_grad in ft_per_sample_grads.items():
172-
# Find the corresponding manually computed gradient
172+
# Find the corresponding manually computed gradient.
173173
idx = list(model.named_parameters()).index((name, model.get_parameter(name)))
174174
per_sample_grad = per_sample_grads[idx]
175175

0 commit comments

Comments
 (0)