class documentation

class TestDLPack:

View In Hierarchy

Undocumented

Method dlpack​_deleter​_exception Undocumented
Method test​_dlpack​_destructor​_exception Undocumented
Method test​_dlpack​_device Undocumented
Method test​_dtype​_passthrough Undocumented
Method test​_dunder​_dlpack​_refcount Undocumented
Method test​_dunder​_dlpack​_stream Undocumented
Method test​_from​_dlpack​_refcount Undocumented
Method test​_higher​_dims Undocumented
Method test​_invalid​_byte​_swapping Undocumented
Method test​_invalid​_dtype Undocumented
Method test​_non​_contiguous Undocumented
Method test​_readonly Undocumented
Method test​_strides​_not​_multiple​_of​_itemsize Undocumented
def dlpack_deleter_exception(self):

Undocumented

def test_dlpack_destructor_exception(self):

Undocumented

def test_dlpack_device(self):

Undocumented

@pytest.mark.parametrize('dtype', [np.int8, np.int16, np.int32, np.int64, np.uint8, np.uint16, np.uint32, np.uint64, np.float16, np.float32, np.float64, np.complex64, np.complex128])
def test_dtype_passthrough(self, dtype):

Undocumented

@pytest.mark.skipif(IS_PYPY, reason='PyPy can\'t get refcounts.')
def test_dunder_dlpack_refcount(self):

Undocumented

def test_dunder_dlpack_stream(self):

Undocumented

@pytest.mark.skipif(IS_PYPY, reason='PyPy can\'t get refcounts.')
def test_from_dlpack_refcount(self):

Undocumented

@pytest.mark.parametrize('ndim', range(33))
def test_higher_dims(self, ndim):

Undocumented

def test_invalid_byte_swapping(self):

Undocumented

def test_invalid_dtype(self):

Undocumented

def test_non_contiguous(self):

Undocumented

def test_readonly(self):

Undocumented

def test_strides_not_multiple_of_itemsize(self):

Undocumented