Home
last modified time | relevance | path

Searched refs:cycle_length (Results 1 – 25 of 53) sorted by relevance

123

/external/tensorflow/tensorflow/python/data/experimental/kernel_tests/serialization/
Dparallel_interleave_dataset_serialization_test.py38 def _build_ds(self, cycle_length, block_length, sloppy=False): argument
43 cycle_length, block_length, sloppy)))
47 cycle_length = 2
50 lambda: self._build_ds(cycle_length, block_length),
51 lambda: self._build_ds(cycle_length * 2, block_length * 1),
54 cycle_length = 1
56 self.run_core_tests(lambda: self._build_ds(cycle_length, block_length),
59 cycle_length = 2
61 self.run_core_tests(lambda: self._build_ds(cycle_length, block_length),
70 def run_test(cycle_length, block_length): argument
[all …]
Dinterleave_dataset_serialization_test.py34 def _build_iterator_graph(self, input_values, cycle_length, block_length, argument
40 cycle_length, block_length, num_parallel_calls)
52 def testSerializationCore(self, cycle_length, block_length, argument
59 input_values, cycle_length, block_length, num_parallel_calls),
61 input_values, cycle_length * 2, block_length, num_parallel_calls),
77 _interleave_fn, cycle_length=1)
/external/tensorflow/tensorflow/python/data/kernel_tests/
Dinterleave_test.py33 def _interleave(lists, cycle_length, block_length): argument
53 for i in range(cycle_length):
61 for i in range(cycle_length):
113 def testPythonImplementation(self, input_values, cycle_length, block_length, argument
118 expected_elements, _interleave(input_lists, cycle_length,
142 def testInterleaveDataset(self, input_values, cycle_length, block_length, argument
148 cycle_length, block_length, num_parallel_calls)
151 _repeat(input_values, count), cycle_length, block_length)
170 def testInterleaveDatasetError(self, input_values, cycle_length, block_length, argument
174 dataset_ops.Dataset.from_tensors, cycle_length, block_length,
[all …]
Dfrom_generator_test.py111 interleave_fn, cycle_length=10, block_length=len(input_list))
163 interleave_fn, cycle_length=num_parallel_iterators, block_length=1)
/external/tensorflow/tensorflow/python/data/experimental/kernel_tests/
Dparallel_interleave_test.py59 def dataset_fn(self, input_values, cycle_length, block_length, sloppy, argument
83 interleave_fn, cycle_length, block_length, sloppy,
86 def _interleave(self, lists, cycle_length, block_length): argument
96 for i in range(cycle_length):
104 for i in range(cycle_length):
178 cycle_length=1,
209 cycle_length=2,
237 cycle_length=2,
279 cycle_length=2,
319 cycle_length=2,
[all …]
Dreader_dataset_ops_test_base.py170 def _interleave(self, iterators, cycle_length): argument
174 for i in range(cycle_length):
180 for i in range(min(cycle_length, len(open_iterators))):
196 cycle_length=1): argument
203 def _next_record_interleaved(file_indices, cycle_length): argument
205 cycle_length)
215 if cycle_length == 1:
218 next_records = _next_record_interleaved(file_indices, cycle_length)
264 cycle_length=interleave_cycle_length):
314 def _interleave(self, iterators, cycle_length): argument
[all …]
Dcardinality_test.py83 lambda _: dataset_ops.Dataset.from_tensors(0), cycle_length=1),
87 cycle_length=1,
Drebatch_dataset_test.py281 32, drop_remainder=drop_remainder), cycle_length=2)
303 32, drop_remainder=drop_remainder), cycle_length=2,
/external/tensorflow/tensorflow/contrib/data/python/ops/
Dinterleave_ops.py27 cycle_length, argument
76 map_func, cycle_length, block_length, sloppy, buffer_output_elements,
82 def sloppy_interleave(map_func, cycle_length, block_length=1): argument
132 map_func, cycle_length, block_length, sloppy=True)
/external/webrtc/webrtc/video/
Dfull_stack_plot.py213 def __init__(self, fields, data_list, cycle_length=None, frames=None, argument
217 self.cycle_length = cycle_length
245 if self.cycle_length:
246 line.values = average_over_cycle(line.values, self.cycle_length)
269 if self.cycle_length:
270 x = numpy.array(range(self.cycle_length))
340 cycle_length = None
351 cycle_length = values[0]
376 return PlotConfig(fields, load_files(files), cycle_length=cycle_length,
/external/autotest/client/tests/uptime/
Dcontrol9 The test repeatedly executes kernbench during T=cycle_length seconds and then
17 def uptime_test(cycle_length = 300, target_time = 3*60*60):
22 while time.time() < kernbench_started + cycle_length:
25 job.run_test('sleeptest', tag='%d' % counter, seconds=cycle_length)
/external/tensorflow/tensorflow/python/data/experimental/benchmarks/
Dparallel_interleave_benchmark.py79 _make_fake_dataset_fn(), cycle_length=10)
89 _make_fake_dataset_fn(), cycle_length=10))
99 cycle_length=10, num_parallel_calls=optimization.AUTOTUNE)
Dautotune_benchmark.py122 cycle_length=10,
173 cycle_length=2)
180 cycle_length=2)
/external/tensorflow/tensorflow/core/kernels/data/
Dinterleave_dataset_op.cc46 const int64 cycle_length = cycle_length_t->flat<int64>()(0); in MakeDataset() local
48 ctx, cycle_length > 0, in MakeDataset()
65 new Dataset(ctx, input, func_, std::move(captured_func), cycle_length, in MakeDataset()
74 std::unique_ptr<CapturedFunction> captured_func, int64 cycle_length, in Dataset() argument
81 cycle_length_(cycle_length), in Dataset()
Dparallel_interleave_dataset_op.cc65 int64 cycle_length = 0; in MakeDataset() local
67 ParseScalarArgument(ctx, "cycle_length", &cycle_length)); in MakeDataset()
68 OP_REQUIRES(ctx, cycle_length > 0, in MakeDataset()
85 ctx, num_parallel_calls <= cycle_length, in MakeDataset()
100 cycle_length, block_length, num_parallel_calls, sloppy_, in MakeDataset()
109 std::unique_ptr<CapturedFunction> captured_func, int64 cycle_length, in Dataset() argument
117 cycle_length_(cycle_length), in Dataset()
/external/tensorflow/tensorflow/python/keras/engine/
Dtraining_utils_test.py116 lambda _: dataset_ops.Dataset.from_tensors(0), cycle_length=1),
120 cycle_length=1,
164 lambda _: dataset_ops.Dataset.from_tensors(0), cycle_length=1),
173 cycle_length=1,
/external/tensorflow/tensorflow/python/data/ops/
Dreaders.py125 def __init__(self, input_dataset, map_func, cycle_length, block_length, argument
136 cycle_length, dtype=dtypes.int64, name="cycle_length")
148 argument_default=2 * cycle_length)
225 filenames, read_one_file, cycle_length=num_parallel_reads,
Ddataset_ops.py1059 cycle_length, argument
1135 return InterleaveDataset(self, map_func, cycle_length, block_length)
1137 return ParallelInterleaveDataset(self, map_func, cycle_length,
1714 cycle_length, argument
1718 map_func, cycle_length, block_length, num_parallel_calls))
3103 def __init__(self, input_dataset, map_func, cycle_length, block_length): argument
3114 cycle_length, dtype=dtypes.int64, name="cycle_length")
3141 def __init__(self, input_dataset, map_func, cycle_length, block_length, argument
3153 cycle_length, dtype=dtypes.int64, name="cycle_length")
/external/tensorflow/tensorflow/python/data/experimental/ops/
Dinterleave_ops.py42 cycle_length, argument
92 dataset, map_func, cycle_length, block_length, sloppy,
/external/tensorflow/tensorflow/core/kernels/data/experimental/
Dparallel_interleave_dataset_op.cc48 int64 cycle_length = 0; in MakeDataset() local
50 ParseScalarArgument(ctx, "cycle_length", &cycle_length)); in MakeDataset()
51 OP_REQUIRES(ctx, cycle_length > 0, in MakeDataset()
84 cycle_length, block_length, sloppy, buffer_output_elements, in MakeDataset()
93 std::unique_ptr<CapturedFunction> captured_func, int64 cycle_length, in Dataset() argument
101 cycle_length_(cycle_length), in Dataset()
/external/tensorflow/tensorflow/core/api_def/base_api/
Dapi_def_InterleaveDataset.pbtxt18 consecutive elements from `cycle_length` input elements.
/external/tensorflow/tensorflow/python/tpu/
Ddatasets.py147 reader_fn, cycle_length=num_parallel_reads, sloppy=sloppy))
/external/tensorflow/tensorflow/tools/api/golden/v2/
Dtensorflow.data.-dataset.pbtxt47 …argspec: "args=[\'self\', \'map_func\', \'cycle_length\', \'block_length\', \'num_parallel_calls\'…
Dtensorflow.data.experimental.-random-dataset.pbtxt49 …argspec: "args=[\'self\', \'map_func\', \'cycle_length\', \'block_length\', \'num_parallel_calls\'…
Dtensorflow.data.-text-line-dataset.pbtxt49 …argspec: "args=[\'self\', \'map_func\', \'cycle_length\', \'block_length\', \'num_parallel_calls\'…

123