Skip to content

Commit

Permalink
Update gradnorm.py
Browse files Browse the repository at this point in the history
  • Loading branch information
iamgroot42 authored May 10, 2024
1 parent f463fa6 commit e77f59a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mimir/attacks/gradnorm.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def __init__(self, config: ExperimentConfig, model: Model):

def _attack(self, document, probs, tokens=None, **kwargs):
"""
Gradient Norm Attack. Computes p-norm of gradients w.r.t. input tokens.
Gradient Norm Attack. Computes p-norm of gradients w.r.t. model parameters.
"""
# We ignore probs here since they are computed in the general case without gradient-tracking (to save memory)

Expand Down

0 comments on commit e77f59a

Please sign in to comment.