mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-30 19:54:53 +08:00
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:
committed by
PyTorch MergeBot
parent
cc220e45a8
commit
9178deedff
@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user