Skip to content

Commit

Permalink
Fixed error on LayerActivation documentation sample
Browse files Browse the repository at this point in the history
  • Loading branch information
NetoPedro authored and vivekmig committed Jul 3, 2023
1 parent b1a9830 commit 3f7a0b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion captum/attr/_core/layer/layer_activation.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def attribute(
>>> input = torch.randn(2, 3, 32, 32, requires_grad=True)
>>> # Computes layer activation.
>>> # attribution is layer output, with size Nx12x32x32
>>> attribution = layer_cond.attribute(input)
>>> attribution = layer_act.attribute(input)
"""
with torch.no_grad():
layer_eval = _forward_layer_eval(
Expand Down

0 comments on commit 3f7a0b7

Please sign in to comment.