Home
last modified time | relevance | path

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

1234

/external/tensorflow/tensorflow/python/kernel_tests/
Dmap_fn_test.py32 from tensorflow.python.ops import map_fn
61 r = map_fn.map_fn(
68 dtype = map_fn.map_fn(lambda x: constant_op.constant(""),
79 result = map_fn.map_fn(lambda x: x, st)
88 result = map_fn.map_fn(
98 map_fn.map_fn(lambda x: x, [1, 2])
100 map_fn.map_fn(lambda x: x, 1)
120 r = map_fn.map_fn(double_scoped, elems)
130 r = map_fn.map_fn(double_scoped, elems)
139 y = map_fn.map_fn(
[all …]
Dcumulative_logsumexp_test.py27 from tensorflow.python.ops import map_fn
98 return map_fn.map_fn(
/external/tensorflow/tensorflow/python/data/experimental/kernel_tests/optimization/
Dmap_vectorization_test.py55 return x + combinations.combine(map_fn=combinations.NamedObject(name, fn))
203 map_fn, argument
230 dataset = dataset.map(map_fn, num_parallel_calls)
246 def _testOptimization(self, map_fn, dataset_factory, num_parallel_calls): argument
248 unoptimized, optimized = self._get_test_datasets(dataset, map_fn,
258 map_fn = lambda x: (x, x + 1) function
259 self._testOptimization(map_fn, dataset_factory, num_parallel_calls)
268 map_fn = lambda x: x + value function
269 self._testOptimization(map_fn, dataset_factory, num_parallel_calls)
277 map_fn = lambda x: math_ops.cast(x, dtypes.float64) function
[all …]
Dhoist_random_uniform_test.py60 name, map_fn, should_optimize = y
62 map_fn=combinations.NamedObject(name, map_fn),
89 def testHoistFunction(self, map_fn, should_optimize): argument
92 ["Zip[0]", "Map"] if should_optimize else ["Map"])).map(map_fn)
/external/tensorflow/tensorflow/python/keras/layers/preprocessing/
Dpreprocessing_stage.py76 def map_fn(x): function
93 current_layer_data = data.map(map_fn)
95 current_layer_data = map_fn(data)
210 def map_fn(*x): function
214 def map_fn(*x): function
217 return map_fn
235 map_fn = build_map_fn(node, args, kwargs)
236 outputs = args.map(map_fn)
270 def map_fn(*x, j=i): function
273 ds_unzipped.append(ds.map(map_fn))
/external/tensorflow/tensorflow/python/data/experimental/kernel_tests/serialization/
Dflat_map_dataset_serialization_test.py47 def map_fn(x): function
50 return dataset_ops.Dataset.range(start, start + 5 * 5, 5).flat_map(map_fn)
61 def map_fn(y): function
64 return dataset_ops.Dataset.range(100).map(map_fn)
75 def map_fn(x): function
83 return dataset_ops.Dataset.range(100).flat_map(map_fn)
105 def map_fn(x): function
109 return dataset_ops.Dataset.range(100).map(map_fn)
Dchoose_fastest_dataset_serialization_test.py41 map_fn = lambda x: x * 2 function
43 dataset.map(map_fn).batch(batch_size),
44 dataset.batch(batch_size).map(map_fn)
Dmap_and_batch_dataset_serialization_test.py95 def map_fn(i): function
100 batching.map_and_batch(map_fn, 5))
/external/tensorflow/tensorflow/core/grappler/optimizers/data/
Dmap_vectorization_test.cc72 FunctionDef* map_fn = graph->graph()->mutable_library()->add_function(); in AddMapFn() local
73 *map_fn = FunctionDefHelper::Create( in AddMapFn()
81 return map_fn; in AddMapFn()
85 const string& map_fn, int num_parallel_calls = 0) { in AddMapNode() argument
94 {{kAttrNameF, FunctionDefHelper::FunctionRef(map_fn)}, in AddMapNode()
106 {{kAttrNameF, FunctionDefHelper::FunctionRef(map_fn)}, in AddMapNode()
294 auto map_fn = AddMapFn(&graph); in TEST_P() local
296 map_fn->signature().name(), num_parallel_calls); in TEST_P()
342 const string& input_dataset, const string& map_fn, in AddMapAndBatchNode() argument
357 {{kAttrNameF, FunctionDefHelper::FunctionRef(map_fn)}, in AddMapAndBatchNode()
[all …]
/external/tensorflow/tensorflow/python/data/experimental/kernel_tests/
Dmap_and_batch_test.py330 map_fn = lambda x: x function
332 batching.map_and_batch(map_fn, batch_size=10))
334 expected = map_fn(self.evaluate(self.structuredElement(None, shape=[10])))
339 map_fn = lambda x: (x, x) function
341 batching.map_and_batch(map_fn, batch_size=10))
343 expected = map_fn(self.evaluate(self.structuredElement(None, shape=[10])))
348 map_fn = lambda x, y: (y, x) function
351 None)).repeat().apply(batching.map_and_batch(map_fn, batch_size=10))
353 expected = map_fn(
359 map_fn = lambda x, y: x function
[all …]
/external/tensorflow/tensorflow/python/ops/ragged/
Dragged_map_fn_op_test.py183 output = ragged_map_ops.map_fn(
200 output = ragged_map_ops.map_fn(
222 output = ragged_map_ops.map_fn(
249 output = ragged_map_ops.map_fn(
268 out = ragged_map_ops.map_fn(
283 _ = ragged_map_ops.map_fn(
294 _ = ragged_map_ops.map_fn(
307 id_t2 = ragged_map_ops.map_fn(
Dragged_map_ops.py30 def map_fn(fn, function
164 return map_fn_lib.map_fn(fn,
/external/tensorflow/tensorflow/python/data/experimental/benchmarks/
Dmap_defun_benchmark.py27 from tensorflow.python.ops import map_fn
59 map_fn_op = map_fn.map_fn(fn, base)
Dmap_vectorization_benchmark.py108 def _compare(self, input_dataset, map_fn, batch_size, input_size, str_id): argument
112 unoptimized_dataset = input_dataset.map(map_fn).batch(batch_size)
176 def _benchmark_helper(self, map_fn, str_id, base_dataset_factory=None): argument
188 self._compare(base_dataset, map_fn, batch_size, input_size, str_id)
/external/tensorflow/tensorflow/compiler/tests/
Dwhile_test.py34 from tensorflow.python.ops import map_fn
238 r = map_fn.map_fn(lambda x: math_ops.multiply(math_ops.add(x, 3), 2),
252 r = map_fn.map_fn(
/external/tensorflow/tensorflow/python/data/kernel_tests/
Dreduce_test.py125 def map_fn(i): function
130 ds = dataset_ops.Dataset.range(1, i + 1).map(map_fn)
131 result = ds.reduce(map_fn(0), reduce_fn)
208 def map_fn(x): function
213 return dataset_ops.Dataset.range(10).map(map_fn)
Dfilter_test.py28 from tensorflow.python.ops import map_fn
117 squared_xs = map_fn.map_fn(lambda x: x * x, xs)
/external/tensorflow/tensorflow/python/data/benchmarks/
Dmap_benchmark.py28 from tensorflow.python.ops import map_fn
109 return map_fn.map_fn(
/external/tensorflow/tensorflow/python/ops/
Dlinalg_ops.py30 from tensorflow.python.ops import map_fn
734 positive_axis = map_fn.map_fn(
743 perm_after = map_fn.map_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/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_MapAndBatchDataset.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/keras/engine/
Dtraining_integration_test.py154 def map_fn(_): function
159 dataset = dataset_ops.DatasetV2.range(4).map(map_fn).batch(batch_size)
177 eval_dataset = dataset_ops.DatasetV2.range(4).map(map_fn).batch(batch_size)
/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/python/data/experimental/ops/
Dbatching.py441 map_fn = lambda *value: nest.map_structure(to_ragged_variant, value) function
443 map_fn = lambda value: nest.map_structure(to_ragged_variant, value) function
445 self._mapped_dataset = input_dataset.map(map_fn)

1234