def test_array(): a = tensor([0, 1, 2], chunk_size=2) b = array(a) assert a is not b c = asarray(a) assert a is c
def testArray(self): a = tensor([0, 1, 2], chunk_size=2) b = array(a) self.assertIsNot(a, b) c = asarray(a) self.assertIs(a, c)