MCPcopy Create free account
hub / github.com/ray-project/ray / test_drop_empty_block_split

Function test_drop_empty_block_split

python/ray/data/tests/test_split.py:584–587  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

582
583
584def test_drop_empty_block_split():
585 assert [1, 2] == _drop_empty_block_split([0, 1, 2, 3], 3)
586 assert [1, 2] == _drop_empty_block_split([1, 1, 2, 2], 3)
587 assert [] == _drop_empty_block_split([0], 0)
588
589
590def verify_splits(splits, blocks_by_split):

Callers

nothing calls this directly

Calls 1

_drop_empty_block_splitFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…