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

Function verify_cuda_table

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

Source from the content-addressed store, hash-verified

3864
3865
3866def verify_cuda_table(table, expected_schema):
3867 table.validate()
3868 assert table.is_cpu is False
3869 assert table.num_columns == len(expected_schema.names)
3870 assert table.column_names == expected_schema.names
3871 assert str(table) in repr(table)
3872 for c in table.columns:
3873 assert c.is_cpu is False
3874 for chunk in c.iterchunks():
3875 assert chunk.is_cpu is False
3876 assert chunk.device_type == pa.DeviceAllocationType.CUDA
3877 assert table.schema == expected_schema
3878
3879
3880def 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