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

Function verify_cuda_table

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

Source from the content-addressed store, hash-verified

4029
4030
4031def verify_cuda_table(table, expected_schema):
4032 table.validate()
4033 assert table.is_cpu is False
4034 assert table.num_columns == len(expected_schema.names)
4035 assert table.column_names == expected_schema.names
4036 assert str(table) in repr(table)
4037 for c in table.columns:
4038 assert c.is_cpu is False
4039 for chunk in c.iterchunks():
4040 assert chunk.is_cpu is False
4041 assert chunk.device_type == pa.DeviceAllocationType.CUDA
4042 assert table.schema == expected_schema
4043
4044
4045def 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