/external/tensorflow/tensorflow/contrib/distribute/python/ |
D | input_lib_test.py | 38 def _create_iterator(self, input_type, dataset_fn, worker_device_pairs, argument 52 iterator = input_lib.InputFunctionIterator(dataset_fn, input_workers, 56 dataset_fn(distribute_lib.InputContext()), input_workers, 62 dataset_fn, argument 69 input_type, dataset_fn, worker_device_pairs, devices, split_batch_by) 107 dataset_fn = lambda _: dataset_ops.Dataset.range(10) function 111 self._test_iterator(input_type, dataset_fn, worker_device_pairs, 120 dataset_fn = lambda _: dataset_ops.Dataset.range(10) function 124 self._test_iterator(input_type, dataset_fn, worker_device_pairs, 134 def dataset_fn(ctx): function [all …]
|
D | single_loss_example.py | 35 def dataset_fn(): function 47 dataset_fn, loss_fn, optimizer, distribution, iterations_per_step) 59 def dataset_fn(): function 86 return model_fn, dataset_fn, layer 96 def dataset_fn(): function 125 return model_fn, dataset_fn, batchnorm
|
D | step_fn.py | 53 def __init__(self, dataset_fn, distribution): argument 55 self._iterator = distribution.make_input_fn_iterator(lambda _: dataset_fn()) 88 def __init__(self, dataset_fn, loss_fn, optimizer, distribution, argument 90 super(StandardSingleLossStep, self).__init__(dataset_fn, distribution)
|
D | minimize_loss_test.py | 61 model_fn, dataset_fn, layer = minimize_loss_example( 70 iterator = self._get_iterator(distribution, dataset_fn) 99 model_fn, dataset_fn, layer = minimize_loss_example( 102 iterator = self._get_iterator(distribution, dataset_fn) 149 model_fn, dataset_fn, _ = minimize_loss_example( 161 iterator = self._get_iterator(distribution, dataset_fn) 214 model_fn, dataset_fn, batchnorm = batchnorm_example( 230 iterator = self._get_iterator(distribution, dataset_fn) 311 def dataset_fn(): function 322 iterator = self._get_iterator(distribution, dataset_fn) [all …]
|
D | optimizer_v2_test.py | 42 model_fn, dataset_fn, layer = minimize_loss_example( 44 iterator = distribution.make_input_fn_iterator(lambda _: dataset_fn())
|
D | one_device_strategy_test.py | 50 dataset_fn = lambda: dataset_ops.Dataset.range(10) function 53 dataset_fn,
|
/external/tensorflow/tensorflow/python/data/experimental/benchmarks/ |
D | parallel_interleave_benchmark.py | 57 def _benchmark(self, dataset_fn, iters, num_elements): argument 61 dataset = dataset_fn().with_options(options) 77 def dataset_fn(): function 81 self._benchmark(dataset_fn=dataset_fn, iters=10, num_elements=100) 86 def dataset_fn(): function 91 self._benchmark(dataset_fn=dataset_fn, iters=100, num_elements=1000) 96 def dataset_fn(): function 101 self._benchmark(dataset_fn=dataset_fn, iters=100, num_elements=1000)
|
/external/tensorflow/tensorflow/python/data/kernel_tests/ |
D | dataset_test.py | 94 def testDatasetSimpleSourceInputs(self, dataset_fn, num_inputs=0): argument 95 self.assertLen(dataset_fn()._inputs(), num_inputs) 99 dataset_fn = dataset_ops.Dataset.from_sparse_tensor_slices( 104 self.assertEmpty(dataset_fn._inputs()) 144 def testUnaryTransformationInputs(self, dataset_fn, input_dataset_fn): argument 146 self.assertEqual([input_dataset], dataset_fn(input_dataset)._inputs()) 150 dataset_fn = self.make_apply_fn(dataset_ops.Dataset.range(0)) 151 self.assertEqual([input_dataset], dataset_fn(input_dataset)._inputs()) 164 dataset_fn = self.make_interleave_fn(*interleave_fn_args) 165 self.assertEqual([input_dataset], dataset_fn(input_dataset)._inputs()) [all …]
|
D | tf_record_dataset_test.py | 43 def dataset_fn(self, member in TFRecordDatasetTest 71 dataset = self.dataset_fn(self.test_filenames[0]) 77 dataset = self.dataset_fn(self.test_filenames[1]) 83 dataset = self.dataset_fn(self.test_filenames) 91 dataset = self.dataset_fn(self.test_filenames, num_epochs=10) 99 dataset = self.dataset_fn( 121 dataset = self.dataset_fn(zlib_files, compression_type="ZLIB") 136 dataset = self.dataset_fn(gzip_files, compression_type="GZIP")
|
D | text_line_dataset_test.py | 82 def dataset_fn(filenames, num_epochs, batch_size=None): function 92 dataset_fn([test_filenames[0]], 1), expected_output=expected_output) 96 dataset_fn([test_filenames[1]], 1), 103 dataset_fn(test_filenames, 1), expected_output=expected_output) 109 dataset_fn(test_filenames, 10), expected_output=expected_output * 10) 113 dataset_fn(test_filenames, 10, 5),
|
D | reduce_test.py | 135 def dataset_fn(): function 143 _ = dataset_fn().reduce(np.int64(0), reduce_fn) 153 def dataset_fn(): function 162 _ = dataset_fn().reduce(np.int64(0), reduce_fn) 172 def dataset_fn(): function 185 _ = dataset_fn().reduce(np.int64(0), reduce1_fn) 186 _ = dataset_fn().reduce(np.int64(0), reduce2_fn)
|
D | fixed_length_record_dataset_test.py | 77 def dataset_fn(filenames, num_epochs, batch_size=None): function 90 dataset_fn([test_filenames[0]], 1), 97 dataset_fn([test_filenames[1]], 1), 108 dataset_fn(test_filenames, 1), expected_output=expected_output) 111 get_next = self.getNext(dataset_fn(test_filenames, 10)) 120 get_next = self.getNext(dataset_fn(test_filenames, 10, self._num_records))
|
D | shuffle_test.py | 46 def dataset_fn(count=5, buffer_size=None, seed=0): function 60 get_next = self.getNext(dataset_fn()) 69 get_next = self.getNext(dataset_fn(buffer_size=100, seed=37)) 80 get_next = self.getNext(dataset_fn(buffer_size=100, seed=37)) 90 get_next = self.getNext(dataset_fn(buffer_size=100, seed=137)) 103 get_next = self.getNext(dataset_fn(buffer_size=2, seed=37)) 113 get_next = self.getNext(dataset_fn(count=0, buffer_size=100, seed=37))
|
D | cache_test.py | 52 def dataset_fn(count=5, filename=None): function 62 dataset_ops.get_legacy_output_shapes(dataset_fn())) 64 get_next = self.getNext(dataset_fn()) 75 get_next = self.getNext(dataset_fn(filename=self.cache_prefix)) 85 get_next = self.getNext(dataset_fn(count=0, filename=self.cache_prefix)) 96 dataset_fn(count=0, filename=self.cache_prefix + "nonsense"))
|
D | zip_test.py | 35 def dataset_fn(components): function 48 get_next = self.getNext(dataset_fn(equal_length_components)) 59 get_next = self.getNext(dataset_fn(variable_length_components))
|
D | list_files_test.py | 111 def dataset_fn(): function 115 dataset_fn(),
|
/external/tensorflow/tensorflow/python/data/experimental/kernel_tests/ |
D | parallel_interleave_test.py | 59 def dataset_fn(self, input_values, cycle_length, block_length, sloppy, member in ParallelInterleaveTest 176 self.dataset_fn( 207 self.dataset_fn( 235 self.dataset_fn( 277 self.dataset_fn( 317 self.dataset_fn( 360 self.dataset_fn( 398 self.dataset_fn( 418 self.dataset_fn( 440 self.dataset_fn( [all …]
|
D | stats_dataset_ops_test.py | 181 def dataset_fn(): function 187 dataset_fn, {self.regexForNodeName("ParallelMapDataset")}, 194 def dataset_fn(): function 200 dataset_fn, {self.regexForNodeName("ParallelMapDataset")}, 207 def dataset_fn(): function 219 dataset_fn, {self.regexForNodeName("ParallelInterleaveDatasetV2")}, 10, 224 def dataset_fn(): function 233 dataset_fn, {self.regexForNodeName("ExperimentalMapAndBatchDataset")}, 403 def dataset_fn(): function 417 dataset_fn, {self.regexForNodeName("ExperimentalParseExampleDataset")}, [all …]
|
D | scan_test.py | 48 def dataset_fn(start, step, take): function 54 next_element = self.getNext(dataset_fn(start_val, step_val, take_val)) 84 def dataset_fn(start, step, take): function 91 next_element = self.getNext(dataset_fn(start_val, step_val, take_val))
|
D | dense_to_sparse_batch_test.py | 91 def dataset_fn(input_tensor): function 96 get_next = self.getNext(dataset_fn([[1]])) 102 get_next = self.getNext(dataset_fn(np.int32(range(13))))
|
D | get_single_element_test.py | 83 def dataset_fn(): function 88 _ = get_single_element.get_single_element(dataset_fn())
|
D | map_and_batch_test.py | 68 def dataset_fn(batch_size, count, numa_aware=numa_aware): function 84 dataset = dataset_fn(14, 28) 102 get_next = self.getNext(dataset_fn(8, 14)) 122 self.assertDatasetProduces(dataset_fn(8, 0), expected_output=[]) 126 self.assertDatasetProduces(dataset_fn(0, 14), expected_output=[])
|
D | stats_dataset_test_base.py | 88 dataset_fn, argument 95 dataset = dataset_fn()
|
/external/tensorflow/tensorflow/python/keras/engine/ |
D | training_utils_test.py | 142 def test_assert_not_batched(self, dataset_fn, expected_error=None): argument 144 training_utils.assert_not_batched(dataset_fn()) 147 training_utils.assert_not_batched(dataset_fn()) 189 def test_assert_not_shuffled(self, dataset_fn, expected_error=None): argument 191 training_utils.assert_not_shuffled(dataset_fn()) 194 training_utils.assert_not_shuffled(dataset_fn())
|
/external/tensorflow/tensorflow/python/grappler/ |
D | datasets_test.py | 315 def dataset_fn(n): function 318 return dataset_fn 349 def dataset_fn(n): function 352 return dataset_fn
|