MCPcopy Index your code
hub / github.com/tensorflow/datasets / close

Method close

tensorflow_datasets/core/sequential_writer.py:130–134  ·  view source on GitHub ↗

Closes the split (and the shard if it is still open).

(self)

Source from the content-addressed store, hash-verified

128 self.current_shard = None
129
130 def close(self) -> None:
131 """Closes the split (and the shard if it is still open)."""
132 if not self.closed and self.current_shard:
133 self.close_shard()
134 self.closed = True
135
136
137def _split_dict(splits: Dict[str, Split]) -> splits_lib.SplitDict:

Callers 15

write_examplesMethod · 0.45
_test_itemsMethod · 0.45
close_writerMethod · 0.45
close_splitsMethod · 0.45
close_allMethod · 0.45
flushMethod · 0.45
_save_figFunction · 0.45
mainFunction · 0.45
get_random_jpegFunction · 0.45
get_random_pngFunction · 0.45
tearDownClassMethod · 0.45
_get_label_fileFunction · 0.45

Calls 1

close_shardMethod · 0.95

Tested by 2

_test_itemsMethod · 0.36
tearDownClassMethod · 0.36