removing some redundant str splits (#106089)

drop some redundant string splits, no factual changes, just cleaning the codebase

Pull Request resolved: https://github.com/pytorch/pytorch/pull/106089
Approved by: https://github.com/albanD, https://github.com/malfet
This commit is contained in:
Jirka Borovec
2023-09-01 00:22:55 +00:00
committed by PyTorch MergeBot
parent cc220e45a8
commit 9178deedff
18 changed files with 25 additions and 29 deletions

View File

@ -1226,7 +1226,7 @@ def cross(a: ArrayLike, b: ArrayLike, axisa=-1, axisb=-1, axisc=-1, axis=None):
# Move working axis to the end of the shape
a = torch.moveaxis(a, axisa, -1)
b = torch.moveaxis(b, axisb, -1)
msg = "incompatible dimensions for cross product\n" "(dimension must be 2 or 3)"
msg = "incompatible dimensions for cross product\n(dimension must be 2 or 3)"
if a.shape[-1] not in (2, 3) or b.shape[-1] not in (2, 3):
raise ValueError(msg)