Home
last modified time | relevance | path

Searched refs:from_tensor_slices (Results 1 – 25 of 186) sorted by relevance

12345678

/external/tensorflow/tensorflow/python/data/kernel_tests/
Dconcatenate_test.py45 input_dataset = dataset_ops.Dataset.from_tensor_slices(input_components)
46 dataset_to_concatenate = dataset_ops.Dataset.from_tensor_slices(
77 input_dataset = dataset_ops.Dataset.from_tensor_slices(input_components)
78 dataset_to_concatenate = dataset_ops.Dataset.from_tensor_slices(
109 input_dataset = dataset_ops.Dataset.from_tensor_slices(input_components)
110 dataset_to_concatenate = dataset_ops.Dataset.from_tensor_slices(
127 input_dataset = dataset_ops.Dataset.from_tensor_slices(input_components)
128 dataset_to_concatenate = dataset_ops.Dataset.from_tensor_slices(
143 input_dataset = dataset_ops.Dataset.from_tensor_slices(input_components)
144 dataset_to_concatenate = dataset_ops.Dataset.from_tensor_slices(
Dflat_map_test.py48 dataset = dataset_ops.Dataset.from_tensor_slices(components).flat_map(
59 dataset = dataset_ops.Dataset.from_tensor_slices(components).flat_map(
60 lambda x: dataset_ops.Dataset.from_tensor_slices(x).flat_map(
75 dataset_ops.Dataset.from_tensor_slices(components).flat_map(
76 lambda x: dataset_ops.Dataset.from_tensor_slices(x).flat_map(
122 return dataset_ops.Dataset.from_tensor_slices(
143 return dataset_ops.Dataset.from_tensor_slices(x.stack())
161 return dataset_ops.Dataset.from_tensor_slices(
Dfrom_tensor_slices_test.py47 dataset = dataset_ops.Dataset.from_tensor_slices(components)
64 ds = dataset_ops.Dataset.from_tensor_slices(dss)
72 ds = dataset_ops.Dataset.from_tensor_slices(dss)
83 ds = ds.flat_map(dataset_ops.Dataset.from_tensor_slices)
99 dataset = dataset_ops.Dataset.from_tensor_slices(components)
148 dataset = dataset_ops.Dataset.from_tensor_slices(components)
192 dataset = dataset_ops.Dataset.from_tensor_slices(components)
215 dataset = dataset_ops.Dataset.from_tensor_slices(components)
239 dataset = dataset_ops.Dataset.from_tensor_slices(components)
290 dataset = dataset_ops.Dataset.from_tensor_slices(components)
[all …]
Dpadded_batch_test.py52 dataset = dataset_ops.Dataset.from_tensor_slices(seq_lens).map(
90 dataset_ops.Dataset.from_tensor_slices(
99 dataset_ops.Dataset.from_tensor_slices(
111 dataset_ops.Dataset.from_tensor_slices(
124 dataset_ops.Dataset.from_tensor_slices(
147 dataset_ops.Dataset.from_tensor_slices(random_seq_lens).map(fill_tuple)
316 (dataset_ops.Dataset.from_tensor_slices([1, 2, 3, 4]).map(fill),
317 dataset_ops.Dataset.from_tensor_slices([1, 2, 3, 4]).map(fill)))
Diterator_test.py63 dataset = dataset_ops.Dataset.from_tensor_slices(component).map(add)
73 dataset_ops.Dataset.from_tensor_slices([0.0, 1.0, 2.0])
90 dataset_ops.Dataset.from_tensor_slices(components).map(_map_fn)
117 dataset_ops.Dataset.from_tensor_slices(tensor_components)
145 dataset_ops.Dataset.from_tensor_slices(components)
408 dataset_3 = dataset_ops.Dataset.from_tensor_slices([1, 2, 3])
409 dataset_4 = dataset_ops.Dataset.from_tensor_slices([10, 20, 30, 40])
466 dataset_3 = dataset_ops.Dataset.from_tensor_slices([1, 2, 3])
467 dataset_4 = dataset_ops.Dataset.from_tensor_slices([10, 20, 30, 40])
531 dataset = dataset_ops.Dataset.from_tensor_slices([1, 2, 3])
[all …]
Diterator_cluster_test.py53 dataset_3 = dataset_ops.Dataset.from_tensor_slices([1, 2, 3])
69 dataset_3 = dataset_ops.Dataset.from_tensor_slices([1, 2, 3])
134 input_sentences = dataset_ops.Dataset.from_tensor_slices(
170 dataset_ops.Dataset.from_tensor_slices(components).map(_map_fn)
Dunbatch_test.py48 data = dataset_ops.Dataset.from_tensor_slices(data)
67 data = dataset_ops.Dataset.from_tensor_slices(data)
130 data = dataset_ops.Dataset.from_tensor_slices(data)
143 data = dataset_ops.Dataset.from_tensor_slices(data)
212 data = dataset_ops.Dataset.from_tensor_slices(components)
Dinterleave_test.py187 dataset = dataset_ops.Dataset.from_tensor_slices(input_values).repeat(
216 dataset = dataset_ops.Dataset.from_tensor_slices(input_values).map(
239 return dataset_ops.Dataset.from_tensor_slices(
281 dataset = dataset_ops.Dataset.from_tensor_slices(input_values).repeat(
345 dataset = dataset_ops.Dataset.from_tensor_slices(elements)
/external/tensorflow/tensorflow/python/keras/engine/
Dtraining_dataset_test.py69 dataset = dataset_ops.Dataset.from_tensor_slices((inputs, targets))
104 dataset = dataset_ops.Dataset.from_tensor_slices((inputs, targets))
177 dataset_tuple = dataset_ops.Dataset.from_tensor_slices(
192 dataset_dict = dataset_ops.Dataset.from_tensor_slices(
200 predict_dataset_dict = dataset_ops.Dataset.from_tensor_slices(input_dict)
221 dataset = dataset_ops.Dataset.from_tensor_slices(
244 ds = dataset_ops.Dataset.from_tensor_slices(
267 dataset = dataset_ops.Dataset.from_tensor_slices((inputs, targets))
295 train_dataset = dataset_ops.Dataset.from_tensor_slices(
297 val_dataset = dataset_ops.Dataset.from_tensor_slices(
[all …]
Dfeature_columns_integration_test.py91 ds1 = dataset_ops.Dataset.from_tensor_slices(x)
92 ds2 = dataset_ops.Dataset.from_tensor_slices(y)
129 ds = dataset_ops.Dataset.from_tensor_slices((inp_x, inp_y)).batch(5)
175 ds1 = dataset_ops.Dataset.from_tensor_slices(x)
176 ds2 = dataset_ops.Dataset.from_tensor_slices(y)
287 ds1 = dataset_ops.Dataset.from_tensor_slices(x)
288 ds2 = dataset_ops.Dataset.from_tensor_slices(y)
/external/tensorflow/tensorflow/python/autograph/operators/
Dpy_builtins_test.py59 dataset = dataset_ops.DatasetV2.from_tensor_slices([-1, 2, 3])
68 dataset_1 = dataset_ops.DatasetV2.from_tensor_slices([-1, 2, 3])
69 dataset_2 = dataset_ops.DatasetV2.from_tensor_slices([1, -2, 3])
79 dataset_1 = dataset_ops.DatasetV2.from_tensor_slices([-1, 2, 3])
80 dataset_2 = dataset_ops.DatasetV2.from_tensor_slices([1, -2, 3])
81 dataset_3 = dataset_ops.DatasetV2.from_tensor_slices([-1, -2, -3])
128 dataset = dataset_ops.DatasetV2.from_tensor_slices([3, 2, 1])
134 dataset = dataset_ops.DatasetV2.from_tensor_slices([3, 2, 1])
234 dataset = dataset_ops.DatasetV2.from_tensor_slices(['a', 'c'])
249 ds1 = dataset_ops.DatasetV2.from_tensor_slices([-11, -12, 4])
[all …]
/external/tensorflow/tensorflow/python/data/experimental/kernel_tests/optimization/
Dchoose_fastest_dataset_test.py36 dataset = dataset_ops.Dataset.from_tensor_slices([0, 1, 2, 3, 4])
45 dataset = dataset_ops.Dataset.from_tensor_slices([0, 1, 2, 3, 4])
87 dataset_a = dataset_ops.Dataset.from_tensor_slices(slices_a)
88 dataset_b = dataset_ops.Dataset.from_tensor_slices(slices_b)
/external/tensorflow/tensorflow/python/keras/layers/preprocessing/
Dpreprocessing_stage_functional_test.py96 adapt_data = dataset_ops.Dataset.from_tensor_slices(one_array)
150 adapt_data = dataset_ops.Dataset.from_tensor_slices(
223 adapt_data = dataset_ops.Dataset.from_tensor_slices(
235 adapt_data = dataset_ops.Dataset.from_tensor_slices({
322 adapt_data = dataset_ops.Dataset.from_tensor_slices(
357 adapt_data = dataset_ops.Dataset.from_tensor_slices((one_array, one_array))
392 adapt_data = dataset_ops.Dataset.from_tensor_slices((one_array,) * 3)
431 ds_x0 = dataset_ops.Dataset.from_tensor_slices(np.ones((12, 10, 10, 3)))
432 ds_x1 = dataset_ops.Dataset.from_tensor_slices(np.ones((12, 10, 10, 3)))
433 ds_x2 = dataset_ops.Dataset.from_tensor_slices(np.ones((12, 10, 10, 3)))
[all …]
/external/tensorflow/tensorflow/python/data/benchmarks/
Dfrom_tensor_slices_benchmark.py73 dataset_ops.Dataset.from_tensor_slices(input_data).repeat(
91 dataset_ops.Dataset.from_tensor_slices(
122 dataset, dataset_ops.Dataset.from_tensor_slices)
140 dataset_ops.Dataset.from_tensor_slices(input_data).batch(
/external/tensorflow/tensorflow/python/data/experimental/kernel_tests/
Dgroup_by_window_test.py61 input_dataset = dataset_ops.Dataset.from_tensor_slices(
91 input_dataset = dataset_ops.Dataset.from_tensor_slices(
157 input_dataset = dataset_ops.Dataset.from_tensor_slices(math_ops.range(
191 dataset = dataset_ops.Dataset.from_tensor_slices(components).apply(
212 dataset = dataset_ops.Dataset.from_tensor_slices(
234 dataset = dataset_ops.Dataset.from_tensor_slices(components).repeat(
252 dataset = dataset_ops.Dataset.from_tensor_slices(components).apply(
285 dataset = dataset_ops.Dataset.from_tensor_slices(
306 dataset = dataset_ops.Dataset.from_tensor_slices(
Dignore_errors_test.py48 dataset_ops.Dataset.from_tensor_slices(components)
62 dataset_ops.Dataset.from_tensor_slices(components).map(
80 dataset_ops.Dataset.from_tensor_slices(components).map(
104 dataset_ops.Dataset.from_tensor_slices(filenames).map(
153 a = dataset_ops.Dataset.from_tensor_slices([1., 2., 0., 4.])
Dtake_while_test.py50 dataset_ops.Dataset.from_tensor_slices)
86 dataset = dataset_ops.Dataset.from_tensor_slices(string).apply(
111 dataset = dataset_ops.Dataset.from_tensor_slices(boolean_array).apply(
Drejection_resample_test.py46 dataset = dataset_ops.Dataset.from_tensor_slices(classes).shuffle(
83 dataset = dataset_ops.Dataset.from_tensor_slices(data_np)
108 dataset = dataset_ops.Dataset.from_tensor_slices(data_np)
Ddata_service_ops_test.py83 ds = dataset_ops.Dataset.from_tensor_slices([1, 5, 3, 2, 8])
306 ds = dataset_ops.Dataset.from_tensor_slices(consumers)
368 host_dataset = dataset_ops.Dataset.from_tensor_slices(
378 ds = dataset_ops.Dataset.from_tensor_slices(host_datasets)
488 ds = dataset_ops.Dataset.from_tensor_slices(elements)
533 ds = dataset_ops.Dataset.from_tensor_slices(vals)
542 ds = dataset_ops.Dataset.from_tensor_slices(elements)
543 ds = ds.interleave(lambda x: dataset_ops.Dataset.from_tensor_slices([x]))
552 ds = dataset_ops.Dataset.from_tensor_slices(elements)
554 lambda x: dataset_ops.Dataset.from_tensor_slices([x]),
[all …]
/external/tensorflow/tensorflow/python/keras/distribute/
Dkeras_metrics_test.py49 return dataset_ops.Dataset.from_tensor_slices({
62 return dataset_ops.Dataset.from_tensor_slices({
69 return dataset_ops.Dataset.from_tensor_slices({
/external/tensorflow/tensorflow/python/data/experimental/kernel_tests/serialization/
Dconcatenate_dataset_serialization_test.py40 return dataset_ops.Dataset.from_tensor_slices(input_components).concatenate(
41 dataset_ops.Dataset.from_tensor_slices(to_concatenate_components))
Dsequence_dataset_serialization_test.py36 return dataset_ops.Dataset.from_tensor_slices(components).skip(count)
67 return dataset_ops.Dataset.from_tensor_slices(components).take(count)
97 return dataset_ops.Dataset.from_tensor_slices(components).take(
Dflat_map_dataset_serialization_test.py81 return dataset_ops.Dataset.from_tensor_slices([defun_fn(x)])
94 lambda _: dataset_ops.Dataset.from_tensor_slices([test_var]))
123 return dataset_ops.Dataset.from_tensor_slices(
Dpadded_batch_dataset_serialization_test.py40 return dataset_ops.Dataset.from_tensor_slices(seq_lens).map(
57 return dataset_ops.Dataset.from_tensor_slices(seq_lens).map(
Dinterleave_dataset_serialization_test.py39 return dataset_ops.Dataset.from_tensor_slices(input_values).repeat(
70 return dataset_ops.Dataset.from_tensor_slices(

12345678