Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.8/site-packages/tensorflow/_api/v2/compat/v1/data/experimental/__init__.py: 100%

66 statements  

« prev     ^ index     » next       coverage.py v7.4.0, created at 2024-01-03 07:57 +0000

1# This file is MACHINE GENERATED! Do not edit. 

2# Generated by: tensorflow/python/tools/api/generator/create_python_api.py script. 

3"""Experimental API for building input pipelines. 

4 

5This module contains experimental `Dataset` sources and transformations that can 

6be used in conjunction with the `tf.data.Dataset` API. Note that the 

7`tf.data.experimental` API is not subject to the same backwards compatibility 

8guarantees as `tf.data`, but we will provide deprecation advice in advance of 

9removing existing functionality. 

10 

11See [Importing Data](https://tensorflow.org/guide/datasets) for an overview. 

12 

13@@AutoShardPolicy 

14@@AutotuneAlgorithm 

15@@AutotuneOptions 

16@@CheckpointInputPipelineHook 

17@@Counter 

18@@CsvDataset 

19@@DatasetInitializer 

20@@DatasetStructure 

21@@DistributeOptions 

22@@ExternalStatePolicy 

23@@OptimizationOptions 

24@@Optional 

25@@OptionalStructure 

26@@RaggedTensorStructure 

27@@RandomDataset 

28@@Reducer 

29@@SparseTensorStructure 

30@@SqlDataset 

31@@Structure 

32@@TFRecordWriter 

33@@TensorArrayStructure 

34@@TensorStructure 

35@@ThreadingOptions 

36 

37@@assert_cardinality 

38@@at 

39@@bucket_by_sequence_length 

40@@cardinality 

41@@choose_from_datasets 

42@@copy_to_device 

43@@dense_to_ragged_batch 

44@@dense_to_sparse_batch 

45@@distribute 

46@@enable_debug_mode 

47@@enumerate_dataset 

48@@from_list 

49@@from_variant 

50@@get_next_as_optional 

51@@get_single_element 

52@@get_structure 

53@@group_by_reducer 

54@@group_by_window 

55@@ignore_errors 

56@@index_table_from_dataset 

57@@load 

58@@make_batched_features_dataset 

59@@make_csv_dataset 

60@@make_saveable_from_iterator 

61@@map_and_batch 

62@@map_and_batch_with_legacy_function 

63@@parallel_interleave 

64@@parse_example_dataset 

65@@prefetch_to_device 

66@@rejection_resample 

67@@sample_from_datasets 

68@@save 

69@@scan 

70@@shuffle_and_repeat 

71@@snapshot 

72@@table_from_dataset 

73@@take_while 

74@@to_variant 

75@@unbatch 

76@@unique 

77 

78@@AUTOTUNE 

79@@INFINITE_CARDINALITY 

80@@SHARD_HINT 

81@@UNKNOWN_CARDINALITY 

82 

83""" 

84 

85import sys as _sys 

86 

87from . import service 

88from tensorflow.python.data.experimental.ops.batching import dense_to_ragged_batch 

89from tensorflow.python.data.experimental.ops.batching import dense_to_sparse_batch 

90from tensorflow.python.data.experimental.ops.batching import map_and_batch 

91from tensorflow.python.data.experimental.ops.batching import map_and_batch_with_legacy_function 

92from tensorflow.python.data.experimental.ops.batching import unbatch 

93from tensorflow.python.data.experimental.ops.cardinality import INFINITE as INFINITE_CARDINALITY 

94from tensorflow.python.data.experimental.ops.cardinality import UNKNOWN as UNKNOWN_CARDINALITY 

95from tensorflow.python.data.experimental.ops.cardinality import assert_cardinality 

96from tensorflow.python.data.experimental.ops.cardinality import cardinality 

97from tensorflow.python.data.experimental.ops.counter import CounterV1 as Counter 

98from tensorflow.python.data.experimental.ops.distribute import SHARD_HINT 

99from tensorflow.python.data.experimental.ops.enumerate_ops import enumerate_dataset 

100from tensorflow.python.data.experimental.ops.error_ops import ignore_errors 

101from tensorflow.python.data.experimental.ops.from_list import from_list 

102from tensorflow.python.data.experimental.ops.get_single_element import get_single_element 

103from tensorflow.python.data.experimental.ops.grouping import Reducer 

104from tensorflow.python.data.experimental.ops.grouping import bucket_by_sequence_length 

105from tensorflow.python.data.experimental.ops.grouping import group_by_reducer 

106from tensorflow.python.data.experimental.ops.grouping import group_by_window 

107from tensorflow.python.data.experimental.ops.interleave_ops import choose_from_datasets_v1 as choose_from_datasets 

108from tensorflow.python.data.experimental.ops.interleave_ops import parallel_interleave 

109from tensorflow.python.data.experimental.ops.interleave_ops import sample_from_datasets_v1 as sample_from_datasets 

110from tensorflow.python.data.experimental.ops.iterator_ops import CheckpointInputPipelineHook 

111from tensorflow.python.data.experimental.ops.iterator_ops import make_saveable_from_iterator 

112from tensorflow.python.data.experimental.ops.lookup_ops import DatasetInitializer 

113from tensorflow.python.data.experimental.ops.lookup_ops import index_table_from_dataset 

114from tensorflow.python.data.experimental.ops.lookup_ops import table_from_dataset 

115from tensorflow.python.data.experimental.ops.parsing_ops import parse_example_dataset 

116from tensorflow.python.data.experimental.ops.prefetching_ops import copy_to_device 

117from tensorflow.python.data.experimental.ops.prefetching_ops import prefetch_to_device 

118from tensorflow.python.data.experimental.ops.random_ops import RandomDatasetV1 as RandomDataset 

119from tensorflow.python.data.experimental.ops.readers import CsvDatasetV1 as CsvDataset 

120from tensorflow.python.data.experimental.ops.readers import SqlDatasetV1 as SqlDataset 

121from tensorflow.python.data.experimental.ops.readers import make_batched_features_dataset_v1 as make_batched_features_dataset 

122from tensorflow.python.data.experimental.ops.readers import make_csv_dataset_v1 as make_csv_dataset 

123from tensorflow.python.data.experimental.ops.resampling import rejection_resample 

124from tensorflow.python.data.experimental.ops.scan_ops import scan 

125from tensorflow.python.data.experimental.ops.shuffle_ops import shuffle_and_repeat 

126from tensorflow.python.data.experimental.ops.snapshot import snapshot 

127from tensorflow.python.data.experimental.ops.take_while_ops import take_while 

128from tensorflow.python.data.experimental.ops.unique import unique 

129from tensorflow.python.data.experimental.ops.writers import TFRecordWriter 

130from tensorflow.python.data.ops.dataset_ops import AUTOTUNE 

131from tensorflow.python.data.ops.dataset_ops import DatasetSpec as DatasetStructure 

132from tensorflow.python.data.ops.dataset_ops import from_variant 

133from tensorflow.python.data.ops.dataset_ops import get_structure 

134from tensorflow.python.data.ops.dataset_ops import to_variant 

135from tensorflow.python.data.ops.debug_mode import enable_debug_mode 

136from tensorflow.python.data.ops.iterator_ops import get_next_as_optional 

137from tensorflow.python.data.ops.optional_ops import Optional 

138from tensorflow.python.data.ops.optional_ops import OptionalSpec as OptionalStructure 

139from tensorflow.python.data.ops.options import AutoShardPolicy 

140from tensorflow.python.data.ops.options import AutotuneAlgorithm 

141from tensorflow.python.data.ops.options import AutotuneOptions 

142from tensorflow.python.data.ops.options import DistributeOptions 

143from tensorflow.python.data.ops.options import ExternalStatePolicy 

144from tensorflow.python.data.ops.options import OptimizationOptions 

145from tensorflow.python.data.ops.options import ThreadingOptions 

146from tensorflow.python.data.util.structure import _RaggedTensorStructure as RaggedTensorStructure 

147from tensorflow.python.data.util.structure import _SparseTensorStructure as SparseTensorStructure 

148from tensorflow.python.data.util.structure import _TensorArrayStructure as TensorArrayStructure 

149from tensorflow.python.data.util.structure import _TensorStructure as TensorStructure 

150from tensorflow.python.framework.type_spec import TypeSpec as Structure