Skip to content

Commit 60aa67d

Browse files
authored
Fix minor typo in forward_ad_usage tutorial
1 parent d970640 commit 60aa67d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

intermediate_source/forward_ad_usage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def fn(x, y):
6363
dual_input_alt = fwAD.make_dual(primal, tangent.T)
6464
assert fwAD.unpack_dual(dual_input_alt).tangent is not tangent
6565

66-
# Tensors that do not not have an associated tangent are automatically
66+
# Tensors that do not have an associated tangent are automatically
6767
# considered to have a zero-filled tangent of the same shape.
6868
plain_tensor = torch.randn(10, 10)
6969
dual_output = fn(dual_input, plain_tensor)

0 commit comments

Comments
 (0)