diff --git a/intermediate_source/forward_ad_usage.py b/intermediate_source/forward_ad_usage.py index 688456c9b59..16f87d34d6e 100644 --- a/intermediate_source/forward_ad_usage.py +++ b/intermediate_source/forward_ad_usage.py @@ -63,7 +63,7 @@ def fn(x, y): dual_input_alt = fwAD.make_dual(primal, tangent.T) assert fwAD.unpack_dual(dual_input_alt).tangent is not tangent - # Tensors that do not not have an associated tangent are automatically + # Tensors that do not have an associated tangent are automatically # considered to have a zero-filled tangent of the same shape. plain_tensor = torch.randn(10, 10) dual_output = fn(dual_input, plain_tensor)