Пример #1
0
    def testAllReduction(self):
        o = tensor([False])

        with self.assertRaises(ValueError):
            all([-1, 4, 5], out=o)
Пример #2
0
def test_all_reduction():
    o = tensor([False])

    with pytest.raises(ValueError):
        all([-1, 4, 5], out=o)