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 b783a39 commit 4ed85eeCopy full SHA for 4ed85ee
readme.md
@@ -107,9 +107,9 @@ For example:
107
108
x2 = torch.tensor([[1., 2.],
109
[3., 4.]], requires_grad=True)
110
- # x2.grad None
111
- # x2.grad_fn None
112
- # x2.is_leaf True
+ # x2.grad None
+ # x2.grad_fn None
+ # x2.is_leaf True
113
# x2.requires_grad True
114
```
115
@@ -124,7 +124,7 @@ For example:
124
# x2.grad None
125
# x2.grad_fn <SumBackward0>
126
# x2.is_leaf False
127
- # x2.requires_grad. True
+ # x2.requires_grad True
128
129
130
* Call `backward()` function to compute gradients automatically
0 commit comments