MCPcopy Create free account
hub / github.com/tensorflow/datasets / _make_absolute_instructions

Function _make_absolute_instructions

tensorflow_datasets/core/splits.py:532–541  ·  view source on GitHub ↗
(
    split_infos: Iterable[SplitInfo],
    instruction: SplitArg,
)

Source from the content-addressed store, hash-verified

530
531
532def _make_absolute_instructions(
533 split_infos: Iterable[SplitInfo],
534 instruction: SplitArg,
535) -> list[_AbsoluteInstruction]:
536 if isinstance(instruction, str):
537 instruction = AbstractSplit.from_spec(instruction)
538
539 # Create the absolute instruction (per split)
540 split_info_map = {split_info.name: split_info for split_info in split_infos}
541 return instruction.to_absolute(split_info_map)
542
543
544def _file_instructions_for_split(

Callers 1

_make_file_instructionsFunction · 0.85

Calls 2

from_specMethod · 0.45
to_absoluteMethod · 0.45

Tested by

no test coverage detected