Skip to content

Commit 19e68c8

Browse files
authored
Update per_sample_grads.py
1 parent 280521f commit 19e68c8

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

intermediate_source/per_sample_grads.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,6 @@ def compute_loss(params, buffers, sample, target):
168168
# we can double check that the results using ``grad`` and ``vmap`` match the
169169
# results of hand processing each one individually:
170170

171-
# Replace the comparison section with this updated code
172171
for name, ft_per_sample_grad in ft_per_sample_grads.items():
173172
# Find the corresponding manually computed gradient
174173
idx = list(model.named_parameters()).index((name, model.get_parameter(name)))

0 commit comments

Comments
 (0)