mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 12:54:11 +08:00
[BE][2/6] fix typos in test/ (test/test_*.py) (#157636)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/157636 Approved by: https://github.com/yewentao256, https://github.com/mlazos ghstack dependencies: #156311, #156609
This commit is contained in:
committed by
PyTorch MergeBot
parent
ffe11b2bf2
commit
fc0376e8b1
@ -1955,7 +1955,7 @@ class TestOldViewOps(TestCase):
|
||||
with self.assertRaises(numpy_err, msg=msg):
|
||||
np.array_split(a.cpu().numpy(), sections_or_indices, dim)
|
||||
|
||||
# addtional tests for tensor_split with tensor_indices_or_sections
|
||||
# additional tests for tensor_split with tensor_indices_or_sections
|
||||
with self.assertRaisesRegex(
|
||||
RuntimeError,
|
||||
r"tensor_split expected tensor_indices_or_sections to have dtype of long, but got Float",
|
||||
|
Reference in New Issue
Block a user