We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 770ee6f commit 78ba7d8Copy full SHA for 78ba7d8
beginner_source/blitz/autograd_tutorial.py
@@ -74,7 +74,7 @@
74
75
################################################################
76
# ``.requires_grad_( ... )`` changes an existing Tensor's ``requires_grad``
77
-# flag in-place. The input flag defaults to ``True`` if not given.
+# flag in-place. The input flag defaults to ``False`` if not given.
78
a = torch.randn(2, 2)
79
a = ((a * 3) / (a - 1))
80
print(a.requires_grad)
0 commit comments