MCPcopy Create free account
hub / github.com/apache/arrow / verify_cuda_table

Function verify_cuda_table

python/pyarrow/tests/test_table.py:3977–3988  ·  view source on GitHub ↗
(table, expected_schema)

Source from the content-addressed store, hash-verified

3975
3976
3977def verify_cuda_table(table, expected_schema):
3978 table.validate()
3979 assert table.is_cpu is False
3980 assert table.num_columns == len(expected_schema.names)
3981 assert table.column_names == expected_schema.names
3982 assert str(table) in repr(table)
3983 for c in table.columns:
3984 assert c.is_cpu is False
3985 for chunk in c.iterchunks():
3986 assert chunk.is_cpu is False
3987 assert chunk.device_type == pa.DeviceAllocationType.CUDA
3988 assert table.schema == expected_schema
3989
3990
3991def test_table_non_cpu(cuda_context, cpu_table, cuda_table,

Callers 1

test_table_non_cpuFunction · 0.85

Calls 2

lenFunction · 0.85
validateMethod · 0.45

Tested by

no test coverage detected