Skip to content

Commit 34f8af9

Browse files
committed
minor fixes
1 parent d9bd525 commit 34f8af9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ Each boolean input parameter (defaulting to true unless specified) of `sdp_kerne
115115
This function is deprecated in favor of `torch.linalg.multi_dot`.
116116

117117
Migration guide:
118-
`multi_dot` accepts a list of two or more tensors whereas `chain_multimul` accepted multiple tensors as input arguments. For migration, convert the multiple tensors in argument of `chain_multimul` into a list of two or more tensors for `multi_dot`.
118+
`multi_dot` accepts a list of two or more tensors whereas `chain_matmul` accepted multiple tensors as input arguments. For migration, convert the multiple tensors in argument of `chain_matmul` into a list of two or more tensors for `multi_dot`.
119119

120120
Example: Replace `torch.chain_matmul(a, b, c)` with `torch.linalg.multi_dot([a, b, c])`.
121121

@@ -129,18 +129,18 @@ Migration guide:
129129

130130
#### torch.qr
131131

132-
`torch.qr()` is deprecated in favor of `torch.linalg.qr()`.
132+
`torch.qr()` is deprecated in favor of `torch.linalg.qr()`.
133133

134134
Migration guide:
135135
* The usage `Q, R = torch.qr(A)` should be replaced with `Q, R = torch.linalg.qr(A)`.
136-
* The boolean parameter `some` of `torch.qr` is replaced with a string parameter `mode` in `torch.linalg.qr`. The corresponding change in usage is from `Q, R = torch.qr(A, some=False)` to `Q, R = torch.linalg.qr(A, mode="complete")`.
136+
* The boolean parameter `some` of `torch.qr` is replaced with a string parameter `mode` in `torch.linalg.qr`. The corresponding change in usage is from `Q, R = torch.qr(A, some=False)` to `Q, R = torch.linalg.qr(A, mode="complete")`.
137137

138138
#### torch.range
139139

140140
The function `torch.range()` is deprecated as its usage is incompatible with Python's builtin range. Instead, use `torch.arange()` as it produces values in `[start, end)`.
141141

142142
Migration guide:
143-
* The usage of `torch.range(a, b)` should be replaced with `torch.arange(a, b)`.
143+
* `torch.range(start, end)` produces values in the range of `[start, end]`. But `torch.arange(start, end)` produces values in `[start, end)`. For step size of 1, migrate usage from `torch.range(start, end, 1)` to `torch.arange(start, end+1, 1)`.
144144

145145
## License
146146
TorchFix is BSD License licensed, as found in the LICENSE file.

0 commit comments

Comments
 (0)