You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-4
Original file line number
Diff line number
Diff line change
@@ -115,7 +115,7 @@ Each boolean input parameter (defaulting to true unless specified) of `sdp_kerne
115
115
This function is deprecated in favor of `torch.linalg.multi_dot`.
116
116
117
117
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`.
119
119
120
120
Example: Replace `torch.chain_matmul(a, b, c)` with `torch.linalg.multi_dot([a, b, c])`.
121
121
@@ -129,18 +129,18 @@ Migration guide:
129
129
130
130
#### torch.qr
131
131
132
-
`torch.qr()` is deprecated in favor of `torch.linalg.qr()`.
132
+
`torch.qr()` is deprecated in favor of `torch.linalg.qr()`.
133
133
134
134
Migration guide:
135
135
* 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")`.
137
137
138
138
#### torch.range
139
139
140
140
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)`.
141
141
142
142
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)`.
144
144
145
145
## License
146
146
TorchFix is BSD License licensed, as found in the LICENSE file.
0 commit comments