Home
last modified time | relevance | path

Searched refs:map_fn (Results 1 – 25 of 60) sorted by relevance

123

/external/tensorflow/tensorflow/python/kernel_tests/
Dmap_fn_test.py31 from tensorflow.python.ops import map_fn
58 r = map_fn.map_fn(
65 dtype = map_fn.map_fn(lambda x: constant_op.constant(""),
73 map_fn.map_fn(
83 map_fn.map_fn(lambda x: x, [1, 2])
85 map_fn.map_fn(lambda x: x, 1)
105 r = map_fn.map_fn(double_scoped, elems)
115 r = map_fn.map_fn(double_scoped, elems)
124 y = map_fn.map_fn(
134 r = map_fn.map_fn(
[all …]
/external/tensorflow/tensorflow/core/grappler/optimizers/data/
Dmap_vectorization_test.cc59 FunctionDef* map_fn = graph->graph()->mutable_library()->add_function(); in AddMapFn() local
60 *map_fn = FunctionDefHelper::Create( in AddMapFn()
68 return map_fn; in AddMapFn()
72 const string& map_fn, int num_parallel_calls = 0) { in AddMapNode() argument
81 {{kAttrNameF, FunctionDefHelper::FunctionRef(map_fn)}, in AddMapNode()
93 {{kAttrNameF, FunctionDefHelper::FunctionRef(map_fn)}, in AddMapNode()
246 auto map_fn = AddMapFn(&graph); in TEST_P() local
248 map_fn->signature().name(), num_parallel_calls); in TEST_P()
285 const string& input_dataset, const string& map_fn, in AddMapAndBatchNode() argument
300 {{kAttrNameF, FunctionDefHelper::FunctionRef(map_fn)}, in AddMapAndBatchNode()
[all …]
/external/tensorflow/tensorflow/python/data/experimental/kernel_tests/optimization/
Dmap_vectorization_test.py326 map_fn, argument
351 dataset = dataset.map(map_fn, num_parallel_calls)
371 def testOptimization(self, map_fn, base_dataset_factory, num_parallel_calls): argument
373 unoptimized, optimized = self._get_test_datasets(base_dataset, map_fn,
379 def map_fn(x): function
387 _, optimized = self._get_test_datasets(base_dataset, map_fn)
396 def map_fn(x): function
402 base_dataset, map_fn, expect_optimized=True)
410 def map_fn(x): function
421 dataset = dataset.apply(batching.map_and_batch(map_fn, 100))
[all …]
/external/tensorflow/tensorflow/python/data/experimental/kernel_tests/serialization/
Dflat_map_dataset_serialization_test.py41 def map_fn(x): function
44 return dataset_ops.Dataset.range(start, start + 5 * 5, 5).flat_map(map_fn)
54 def map_fn(y): function
57 return dataset_ops.Dataset.range(100).map(map_fn)
67 def map_fn(x): function
75 return dataset_ops.Dataset.range(100).flat_map(map_fn)
95 def map_fn(x): function
99 return dataset_ops.Dataset.range(100).map(map_fn)
Dchoose_fastest_dataset_serialization_test.py35 map_fn = lambda x: x * 2 function
37 dataset.map(map_fn).batch(batch_size),
38 dataset.batch(batch_size).map(map_fn)
Dmap_and_batch_dataset_serialization_test.py91 def map_fn(i): function
96 batching.map_and_batch(map_fn, 5))
/external/tensorflow/tensorflow/python/data/benchmarks/
Dmap_benchmark.py30 def benchmark_helper(chain_length, map_fn, use_inter_op_parallelism, label): argument
34 dataset, map_fn, use_inter_op_parallelism=use_inter_op_parallelism)
49 def benchmark_helper(fan_out, map_fn, use_inter_op_parallelism, label): argument
53 dataset, map_fn, use_inter_op_parallelism=use_inter_op_parallelism)
/external/tensorflow/tensorflow/python/ops/ragged/
Dragged_map_fn_op_test.py166 output = ragged_map_ops.map_fn(
183 output = ragged_map_ops.map_fn(
205 output = ragged_map_ops.map_fn(
232 output = ragged_map_ops.map_fn(
251 out = ragged_map_ops.map_fn(
266 _ = ragged_map_ops.map_fn(
277 _ = ragged_map_ops.map_fn(
290 id_t2 = ragged_map_ops.map_fn(
/external/tensorflow/tensorflow/python/data/experimental/benchmarks/
Dmap_defun_benchmark.py28 from tensorflow.python.ops import map_fn
66 map_fn_op = map_fn.map_fn(fn, base)
Dmap_vectorization_benchmark.py115 def _compare(self, input_dataset, map_fn, batch_size, input_size, str_id): argument
119 unoptimized_dataset = input_dataset.map(map_fn).batch(batch_size)
185 def _benchmark_helper(self, map_fn, str_id, base_dataset_factory=None): argument
197 self._compare(base_dataset, map_fn, batch_size, input_size, str_id)
/external/tensorflow/tensorflow/contrib/gan/python/eval/python/
Dclassifier_metrics_impl.py46 from tensorflow.python.ops import map_fn
349 logits = map_fn.map_fn(
508 return map_fn.map_fn(fn=classifier_fn,
898 return map_fn.map_fn(
1103 ests = map_fn.map_fn(
Dsummaries_impl.py26 from tensorflow.python.ops import map_fn
267 map_fn.map_fn(
/external/tensorflow/tensorflow/python/ops/
Dlinalg_ops.py29 from tensorflow.python.ops import map_fn
598 positive_axis = map_fn.map_fn(
605 perm_after = map_fn.map_fn(
/external/tensorflow/tensorflow/python/data/kernel_tests/
Dfilter_test_base.py26 from tensorflow.python.ops import map_fn
94 squared_xs = map_fn.map_fn(lambda x: x * x, xs)
Dmap_test.py44 from tensorflow.python.ops import map_fn
77 def map_fn(x): function
83 map_fn, num_parallel_calls).with_options(options)
500 row).map(lambda elems: map_fn.map_fn(lambda x: x * x, elems))
564 row).map(lambda elems: map_fn.map_fn(
606 row).map(lambda elems: map_fn.map_fn(
933 def testShortCircuit(self, structure, map_fn, num_parallel_calls): argument
935 map_fn, num_parallel_calls=num_parallel_calls)
939 expected = map_fn(*self.evaluate(self.structuredElement(structure)))
941 expected = map_fn(self.evaluate(self.structuredElement(structure)))
Dreduce_test.py117 def map_fn(i): function
122 ds = dataset_ops.Dataset.range(1, i + 1).map(map_fn)
123 result = ds.reduce(map_fn(0), reduce_fn)
/external/tensorflow/tensorflow/python/ops/distributions/
Dmultinomial.py26 from tensorflow.python.ops import map_fn
269 x = map_fn.map_fn(
/external/tensorflow/tensorflow/python/keras/utils/
Dtf_utils.py145 def map_structure_with_atomic(is_atomic_fn, map_fn, nested): argument
162 return map_fn(nested)
173 map_structure_with_atomic(is_atomic_fn, map_fn, ele) for ele in values
/external/tensorflow/tensorflow/python/data/experimental/kernel_tests/
Dmap_and_batch_test.py438 def testShortCircuit(self, structure, map_fn, num_parallel_calls): argument
440 batching.map_and_batch(map_fn, batch_size=10))
444 expected = map_fn(
447 expected = map_fn(
465 def map_fn(x): function
473 batching.map_and_batch(map_fn, batch_size=10))
Dparallel_interleave_test.py72 def map_fn(x): function
78 return dataset.map(map_fn)
641 def map_fn(x): function
652 map_fn).repeat(self.repeat_count).apply(
724 map_fn = lambda x: dataset_ops.Dataset.range(20 * x, 20 * (x + 1)) function
727 map_fn,
/external/tensorflow/tensorflow/core/api_def/base_api/
Dapi_def_ExperimentalMapAndBatchDataset.pbtxt28 A scalar representing the maximum number of parallel invocations of the `map_fn`
29 function. Applying the `map_fn` on consecutive input elements in parallel has
Dapi_def_ExperimentalNumaMapAndBatchDataset.pbtxt28 A scalar representing the maximum number of parallel invocations of the `map_fn`
29 function. Applying the `map_fn` on consecutive input elements in parallel has
/external/tensorflow/tensorflow/python/data/util/
Dtraverse_test.py91 def map_fn(ds): function
99 ds2 = ds2.flat_map(map_fn(ds1))
/external/tensorflow/tensorflow/compiler/tests/
Dwhile_test.py33 from tensorflow.python.ops import map_fn
237 r = map_fn.map_fn(lambda x: math_ops.multiply(math_ops.add(x, 3), 2),
/external/tensorflow/tensorflow/contrib/labeled_tensor/
D__init__.py110 map_fn = _ops.map_fn variable

123