MCPcopy
hub / github.com/ray-project/ray / _get_num_output_blocks

Function _get_num_output_blocks

python/ray/data/read_api.py:4928–4939  ·  view source on GitHub ↗
(
    parallelism: int = -1,
    override_num_blocks: Optional[int] = None,
)

Source from the content-addressed store, hash-verified

4926
4927
4928def _get_num_output_blocks(
4929 parallelism: int = -1,
4930 override_num_blocks: Optional[int] = None,
4931) -> int:
4932 if parallelism != -1:
4933 logger.warning(
4934 "The argument ``parallelism`` is deprecated in Ray 2.10. Please specify "
4935 "argument ``override_num_blocks`` instead."
4936 )
4937 elif override_num_blocks is not None:
4938 parallelism = override_num_blocks
4939 return parallelism

Callers 4

from_itemsFunction · 0.85
read_datasourceFunction · 0.85
read_parquetFunction · 0.85
from_sparkFunction · 0.85

Calls 1

warningMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…