We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
test_scalar_return_type
1 parent 6b76097 commit 8fb1a61Copy full SHA for 8fb1a61
torch_np/tests/numpy_tests/core/test_indexing.py
@@ -450,6 +450,7 @@ def test_memory_order(self):
450
a = a.reshape(-1, 1)
451
assert_(a[b, 0].flags.f_contiguous)
452
453
+ @pytest.mark.xfail(reason="torch has no type distinct from a 0-d array")
454
def test_scalar_return_type(self):
455
# Full scalar indices should return scalars and object
456
# arrays should not call PyArray_Return on their items
@@ -643,6 +644,7 @@ def test_nontuple_ndindex(self):
643
644
645
646
class TestFieldIndexing:
647
648
649
# Field access on an array should return an array, even if it
650
# is 0-d.
0 commit comments