Home
last modified time | relevance | path

Searched refs:arange (Results 1 – 25 of 234) sorted by relevance

12345678910

/external/tensorflow/tensorflow/python/keras/engine/
Dfeature_columns_integration_test.py207 data = ({'a': np.arange(10), 'b': np.arange(10)}, np.arange(10, 20))
237 'a': np.arange(10),
238 'b': np.arange(10)
240 'b': np.arange(10),
241 'c': np.arange(10)
242 }], np.arange(10, 100))
246 'a': np.arange(10),
247 'b': np.arange(10),
248 'c': np.arange(10)
250 'a': np.arange(10),
[all …]
/external/tensorflow/tensorflow/python/keras/preprocessing/
Dtimeseries_test.py32 data = np.arange(100)
49 self.assertAllClose(inputs[j], np.arange(i * 5 + j, i * 5 + j + 9))
53 data = np.arange(10)
70 data = np.arange(50)
82 self.assertAllClose(batch[j], np.arange(i * 5 + j, i * 5 + j + 10))
87 data = np.arange(10)
93 self.assertNotAllClose(x, np.arange(0, 5))
106 data = np.arange(100)
124 self.assertAllClose(inputs[j], np.arange(start_index, end_index, 2))
127 data = np.arange(100)
[all …]
/external/tensorflow/tensorflow/python/kernel_tests/
Dtranspose_op_test.py45 perm = (rank - 1) - np.arange(rank)
76 perm = (rank - 1) - np.arange(rank)
146 self._compareCpu(np.arange(0., 2), [0])
149 vector = np.arange(0, 2).reshape((1, 1, 1, 2, 1))
170 inp = np.arange(
193 inp = np.arange(
230 inp = np.arange(
255 inp = np.arange(
278 inp = np.arange(
344 self._compareCpu(np.arange(0, 6).reshape([3, 2]).astype(np.float32), [0, 1])
[all …]
Dscan_ops_test.py102 x = np.arange(1, 6).reshape([5]).astype(dtype)
112 x = np.arange(1, 6).reshape([5]).astype(dtype)
120 x = np.arange(1, 6).reshape([5]).astype(dtype)
127 x = np.arange(0, 10).reshape([2, 5]).astype(dtype)
134 x = np.arange(0, 20).reshape([2, 2, 5]).astype(dtype)
141 x = np.arange(1, 145).reshape([2, 2, 3, 3, 2, 2]).astype(dtype)
153 x = np.arange(0, 10).reshape([2, 5]).astype(np.float32)
170 x = np.arange(0, 50).reshape(shape).astype(np.float64)
235 x = np.arange(1, 6).reshape([5]).astype(dtype)
245 x = np.arange(1, 6).reshape([5]).astype(dtype)
[all …]
Dreshape_op_test.py67 x = np.arange(1., 7.).reshape([1, 6]) > 3
71 x = np.arange(1., 7.).reshape([1, 6]).astype(np.float32)
75 x = np.arange(1., 7.).reshape([1, 6]).astype(np.float64)
79 x = np.arange(1., 7.).reshape([1, 6]).astype(np.int32)
83 x = np.arange(1., 7.).reshape([1, 6]).astype(np.complex64)
87 x = np.arange(1., 7.).reshape([1, 6]).astype(np.complex128)
91 x = np.arange(1., 28.).reshape([1, 27]).astype(np.float32)
95 x = np.arange(1., 7.).reshape([6]).astype(np.float32)
99 x = np.arange(1., 7.).reshape([6]).astype(np.float32)
103 x = np.arange(1., 7.).reshape([6]).astype(np.float32)
[all …]
Dextract_volume_patches_op_test.py59 image = np.arange(2 * 3 * 4 * 5 * 6).reshape([2, 3, 4, 5, 6]) + 1
71 image = np.arange(6 * 2 * 4 * 5 * 3).reshape([6, 2, 4, 5, 3]) + 1
83 image = np.arange(45).reshape([1, 3, 3, 5, 1]) + 1
102 image = np.arange(8).reshape([1, 2, 2, 2, 1]) + 1
113 image = np.arange(8).reshape([1, 2, 2, 2, 1]) + 1
Dsparse_reorder_op_test.py54 self._SparseTensorValue_5x6(np.arange(6)))
61 input_val = self._SparseTensorValue_5x6(np.arange(6))
73 input_val = self._SparseTensorValue_5x6(np.arange(6))
82 expected_output_val = self._SparseTensorValue_5x6(np.arange(6))
96 expected_output_val = self._SparseTensorValue_5x6(np.arange(6))
Dsparse_tensors_map_ops_test.py83 sp_input0 = self._SparseTensorValue_5x6(np.arange(6))
84 sp_input1 = self._SparseTensorValue_3x4(np.arange(6))
107 input0_val = self._SparseTensorValue_5x6(np.arange(6))
108 input1_val = self._SparseTensorValue_3x4(np.arange(6))
158 input0_val = self._SparseTensorValue_5x6(np.arange(6))
179 input_val = self._SparseTensorValue_5x6(np.arange(6))
198 indices_value = np.arange(num_elements, dtype=np.int64)
Datrous_conv2d_test.py69 x = np.arange(np.prod(x_shape), dtype=np.float32).reshape(x_shape)
75 f = np.arange(np.prod(f_shape), dtype=np.float32).reshape(f_shape)
174 x = np.arange(np.prod(x_shape), dtype=np.float32).reshape(x_shape)
180 f = np.arange(np.prod(f_shape), dtype=np.float32).reshape(f_shape)
214 x = np.arange(np.prod(x_shape), dtype=np.float32).reshape(x_shape)
220 f = np.arange(np.prod(f_shape), dtype=np.float32).reshape(f_shape)
/external/elfutils/libdwfl/
Dcu.c42 return &mod->dw->aranges->info[mod->aranges[idx].arange]; in dwar()
47 addrarange (Dwfl_Module *mod, Dwarf_Addr addr, struct dwfl_arange **arange) in addrarange() argument
77 aranges[naranges].arange = i; in addrarange()
128 *arange = &mod->aranges[idx]; in addrarange()
295 arangecu (Dwfl_Module *mod, struct dwfl_arange *arange, struct dwfl_cu **cu) in arangecu() argument
297 if (arange->cu == NULL) in arangecu()
299 const Dwarf_Arange *dwarange = &mod->dw->aranges->info[arange->arange]; in arangecu()
300 Dwfl_Error result = intern_cu (mod, dwarange->offset, &arange->cu); in arangecu()
303 assert (arange->cu != NULL && arange->cu != (void *) -1l); in arangecu()
307 *cu = arange->cu; in arangecu()
[all …]
/external/tensorflow/tensorflow/python/kernel_tests/signal/
Dshape_ops_test.py40 tensor = constant_op.constant(np.arange(9152), dtypes.int32)
45 expected = np.tile(np.arange(512), (49, 1))
46 expected += np.tile(np.arange(49) * 180, (512, 1)).T
53 tensor = constant_op.constant(np.arange(10000), dtypes.int32)
58 expected = np.tile(np.arange(512), (53, 1))
59 expected += np.tile(np.arange(53) * 192, (512, 1)).T
162 signal = np.arange(6)
186 signal = np.vstack([np.arange(6),
187 np.arange(6) + 10])
214 signal = np.vstack([np.arange(6),
[all …]
/external/elfutils/libdw/
Ddwarf_getarangeinfo.c38 dwarf_getarangeinfo (Dwarf_Arange *arange, Dwarf_Addr *addrp, in dwarf_getarangeinfo() argument
41 if (arange == NULL) in dwarf_getarangeinfo()
45 *addrp = arange->addr; in dwarf_getarangeinfo()
47 *lengthp = arange->length; in dwarf_getarangeinfo()
49 *offsetp = arange->offset; in dwarf_getarangeinfo()
Ddwarf_getaranges.c41 Dwarf_Arange arange; member
51 if (l1->arange.addr != l2->arange.addr) in compare_aranges()
52 return (l1->arange.addr < l2->arange.addr) ? -1 : 1; in compare_aranges()
198 new_arange->arange.addr = range_address; in dwarf_getaranges()
199 new_arange->arange.length = range_length; in dwarf_getaranges()
210 new_arange->arange.offset = __libdw_first_die_off_from_cu (cu); in dwarf_getaranges()
217 if (unlikely (new_arange->arange.offset in dwarf_getaranges()
271 (*aranges)->info[i] = elt->arange; in dwarf_getaranges()
/external/tensorflow/tensorflow/python/training/
Dtraining_ops_test.py68 x = np.arange(100).astype(dtype)
70 delta = np.arange(100).astype(dtype)
193 x = np.arange(100).astype(dtype)
194 y = np.arange(1, 101).astype(dtype)
196 grad = np.arange(100).astype(dtype)
203 x = np.arange(100).astype(dtype)
204 y = np.arange(1, 101).astype(dtype)
205 z = np.arange(102, 202).astype(dtype)
209 grad = np.arange(100).astype(dtype)
216 x = np.arange(100).astype(dtype)
[all …]
/external/tensorflow/tensorflow/python/ops/numpy_ops/
Dnp_array_ops_test.py384 int_values = np.arange(-3, 3).tolist()
385 float_values = np.arange(-3.5, 3.5).tolist()
390 self.match(np_array_ops.arange(start), np.arange(start), msg=msg)
392 np_array_ops.arange(start, dtype=dtype),
393 np.arange(start, dtype=dtype),
398 np_array_ops.arange(start, stop), np.arange(start, stop), msg=msg)
403 np_array_ops.arange(start, stop, dtype=dtype),
404 np.arange(start, stop, dtype=dtype),
416 np_array_ops.arange(start, stop, step),
417 np.arange(start, stop, step),
[all …]
/external/tensorflow/tensorflow/compiler/tests/
Dscan_ops_test.py102 x = np.arange(1, 6).reshape([5]).astype(dtype)
111 x = np.arange(1, 6).reshape([5]).astype(dtype)
117 x = np.arange(0, 10).reshape([2, 5]).astype(dtype)
123 x = np.arange(0, 20).reshape([2, 2, 5]).astype(dtype)
129 x = np.arange(1, 145).reshape([2, 2, 3, 3, 2, 2]).astype(dtype)
135 x = np.arange(0, 10).reshape([2, 5]).astype(np.float32)
181 x = np.arange(1, 6).reshape([5]).astype(dtype)
190 x = np.arange(1, 6).reshape([5]).astype(dtype)
196 x = np.arange(1, 11).reshape([2, 5]).astype(dtype)
202 x = np.arange(1, 21).reshape([2, 2, 5]).astype(dtype)
[all …]
Dxla_ops_test.py79 v = np.arange(4, dtype=np.int32).astype(dtype).reshape([2, 2])
87 operand = np.arange(10, dtype=np.int32).reshape([2, 5])
228 args=(np.arange(4, dtype=np.int32).astype(dtype).reshape([2, 2]),),
247 args=(np.arange(6, dtype=np.int32).astype(dtype).reshape([2, 3]),),
357 args=(np.arange(12, dtype=np.int32).astype(dtype).reshape([3, 4]),),
358 expected=np.arange(12, dtype=np.int32).astype(dtype).reshape([3, 4]))
361 args=(np.arange(12, dtype=np.int32).astype(dtype).reshape([3, 4]),),
365 args=(np.arange(12, dtype=np.int32).astype(dtype).reshape([3, 4]),),
369 args=(np.arange(12, dtype=np.int32).astype(dtype).reshape([3, 4]),),
386 args=(np.arange(12, dtype=np.int32).astype(dtype).reshape([3, 4]),),
[all …]
/external/tensorflow/tensorflow/python/data/kernel_tests/
Drange_test.py42 expected_output = np.arange(stop, dtype=output_type.as_numpy_dtype)
55 expected_output = np.arange(start, stop, dtype=output_type.as_numpy_dtype)
69 expected_output = np.arange(
97 expected_output = np.arange(
111 expected_output = np.arange(start, stop, dtype=output_type.as_numpy_dtype)
125 expected_output = np.arange(
140 expected_output = np.arange(
/external/tensorflow/tensorflow/python/data/experimental/kernel_tests/serialization/
Dparallel_map_dataset_serialization_test.py47 components = (np.arange(self._tensor_slice_len), np.array([[1, 2, 3]]) *
48 np.arange(self._tensor_slice_len)[:, np.newaxis],
49 np.array(multiplier) * np.arange(self._tensor_slice_len))
58 components = (np.arange(self._tensor_slice_len), np.array([[1, 2, 3]]) *
59 np.arange(self._tensor_slice_len)[:, np.newaxis],
60 np.array(multiplier) * np.arange(self._tensor_slice_len))
Dunbatch_dataset_serialization_test.py36 np.arange(tensor_slice_len),
37 np.array([[1, 2, 3]]) * np.arange(tensor_slice_len)[:, np.newaxis],
38 np.array(multiplier) * np.arange(tensor_slice_len))
/external/tensorflow/tensorflow/python/ops/
Dimage_grad_test_base.py48 x = np.arange(0, 4).reshape(in_shape).astype(nptype)
63 x = np.arange(0, 6).reshape(in_shape).astype(nptype)
80 x = np.arange(0, 24).reshape(in_shape).astype(nptype)
97 x = np.arange(0, np.prod(in_shape)).reshape(in_shape).astype(nptype)
143 x = np.arange(np.prod(in_shape)).reshape(in_shape).astype(dtype)
166 x = np.arange(np.prod(in_shape)).reshape(in_shape).astype(np.float32)
229 x = np.arange(0, 24).reshape(in_shape).astype(np.uint8)
287 x = np.arange(0, 4).reshape(in_shape).astype(np.float32)
302 x = np.arange(0, 6).reshape(in_shape).astype(np.float32)
321 x = np.arange(0, 24).reshape(in_shape).astype(np.float32)
[all …]
/external/llvm-project/llvm/test/DebugInfo/X86/
Darange.ll2 ; RUN: llc -mtriple=x86_64-linux -O0 -filetype=obj -generate-arange-section < %s | llvm-dwarfdump -…
3 ; RUN: llc -mtriple=x86_64-linux -O0 -filetype=obj -generate-arange-section < %s | llvm-readobj --r…
12 ; Check that we only have one arange in this compilation unit (it will be for 'f'), and not an extr…
22 source_filename = "test/DebugInfo/X86/arange.ll"
/external/elfutils/tests/
Dget-aranges.c99 Dwarf_Arange *arange = dwarf_onearange (aranges, i); in main() local
100 if (arange == NULL) in main()
110 if (dwarf_getarangeinfo (arange, &start, &length, &cu_offset) in main()
/external/tensorflow/tensorflow/python/keras/layers/preprocessing/
Ddiscretization_test.py168 "adapt_data": np.arange(300),
169 "test_data": np.arange(300),
177 "adapt_data": np.arange(300) ** 2,
178 "test_data": np.arange(300) ** 2,
186 "adapt_data": np.arange(300),
187 "test_data": np.arange(300),
/external/llvm-project/llvm/test/DebugInfo/
Darange-overlap.test1 RUN: llvm-symbolizer --no-demangle --obj=%p/Inputs/arange-overlap.elf-x86_64 0x714 | FileCheck %s
4 CHECK-NEXT: {{.*}}arange-overlap.cc:6

12345678910