/external/tensorflow/third_party/toolchains/preconfig/ubuntu16.04/py/ |
D | BUILD | 171 "numpy_include/numpy/__multiarray_api.h", 172 "numpy_include/numpy/__ufunc_api.h", 173 "numpy_include/numpy/_neighborhood_iterator_imp.h", 174 "numpy_include/numpy/_numpyconfig.h", 175 "numpy_include/numpy/arrayobject.h", 176 "numpy_include/numpy/arrayscalars.h", 177 "numpy_include/numpy/halffloat.h", 178 "numpy_include/numpy/multiarray_api.txt", 179 "numpy_include/numpy/ndarrayobject.h", 180 "numpy_include/numpy/ndarraytypes.h", [all …]
|
/external/tensorflow/third_party/toolchains/preconfig/ubuntu16.04/py3/ |
D | BUILD | 179 "numpy_include/numpy/__multiarray_api.h", 180 "numpy_include/numpy/__ufunc_api.h", 181 "numpy_include/numpy/_neighborhood_iterator_imp.h", 182 "numpy_include/numpy/_numpyconfig.h", 183 "numpy_include/numpy/arrayobject.h", 184 "numpy_include/numpy/arrayscalars.h", 185 "numpy_include/numpy/halffloat.h", 186 "numpy_include/numpy/multiarray_api.txt", 187 "numpy_include/numpy/ndarrayobject.h", 188 "numpy_include/numpy/ndarraytypes.h", [all …]
|
/external/tensorflow/third_party/toolchains/preconfig/centos6/py3/ |
D | BUILD | 151 "numpy_include/numpy/__multiarray_api.h", 152 "numpy_include/numpy/__ufunc_api.h", 153 "numpy_include/numpy/_neighborhood_iterator_imp.h", 154 "numpy_include/numpy/_numpyconfig.h", 155 "numpy_include/numpy/arrayobject.h", 156 "numpy_include/numpy/arrayscalars.h", 157 "numpy_include/numpy/halffloat.h", 158 "numpy_include/numpy/multiarray_api.txt", 159 "numpy_include/numpy/ndarrayobject.h", 160 "numpy_include/numpy/ndarraytypes.h", [all …]
|
/external/tensorflow/tensorflow/python/training/tracking/ |
D | python_state_test.py | 22 import numpy 80 dummy_array = numpy.array([]) 94 if isinstance(value, (numpy.ndarray, numpy.generic)): 121 numpy.save(string_file, self.array, allow_pickle=False) 131 self.array = numpy.load(string_file, allow_pickle=False) 141 root = util.Checkpoint(numpy=_NumpyWrapper(numpy.array([1.]))) 143 root.numpy.array *= 2. 144 self.assertEqual([2.], root.numpy.array) 146 self.assertEqual([1.], root.numpy.array) 153 saver = util.Checkpoint(numpy=save_state) [all …]
|
/external/tensorflow/third_party/toolchains/preconfig/win_1803/py37/ |
D | BUILD | 190 "numpy_include/numpy/__multiarray_api.h", 191 "numpy_include/numpy/__ufunc_api.h", 192 "numpy_include/numpy/_neighborhood_iterator_imp.h", 193 "numpy_include/numpy/_numpyconfig.h", 194 "numpy_include/numpy/arrayobject.h", 195 "numpy_include/numpy/arrayscalars.h", 196 "numpy_include/numpy/halffloat.h", 197 "numpy_include/numpy/multiarray_api.txt", 198 "numpy_include/numpy/ndarrayobject.h", 199 "numpy_include/numpy/ndarraytypes.h", [all …]
|
/external/tensorflow/third_party/toolchains/preconfig/ubuntu16.04/py3_opt/ |
D | BUILD | 179 "numpy_include/numpy/__multiarray_api.h", 180 "numpy_include/numpy/__ufunc_api.h", 181 "numpy_include/numpy/_neighborhood_iterator_imp.h", 182 "numpy_include/numpy/_numpyconfig.h", 183 "numpy_include/numpy/arrayobject.h", 184 "numpy_include/numpy/arrayscalars.h", 185 "numpy_include/numpy/halffloat.h", 186 "numpy_include/numpy/multiarray_api.txt", 187 "numpy_include/numpy/ndarrayobject.h", 188 "numpy_include/numpy/ndarraytypes.h", [all …]
|
/external/tensorflow/third_party/toolchains/preconfig/centos6/py/ |
D | BUILD | 144 "numpy_include/numpy/__multiarray_api.h", 145 "numpy_include/numpy/__ufunc_api.h", 146 "numpy_include/numpy/_neighborhood_iterator_imp.h", 147 "numpy_include/numpy/_numpyconfig.h", 148 "numpy_include/numpy/arrayobject.h", 149 "numpy_include/numpy/arrayscalars.h", 150 "numpy_include/numpy/halffloat.h", 151 "numpy_include/numpy/multiarray_api.txt", 152 "numpy_include/numpy/ndarrayobject.h", 153 "numpy_include/numpy/ndarraytypes.h", [all …]
|
/external/tensorflow/third_party/toolchains/preconfig/win_1803/py38/ |
D | BUILD | 190 "numpy_include/numpy/__multiarray_api.h", 191 "numpy_include/numpy/__ufunc_api.h", 192 "numpy_include/numpy/_neighborhood_iterator_imp.h", 193 "numpy_include/numpy/_numpyconfig.h", 194 "numpy_include/numpy/arrayobject.h", 195 "numpy_include/numpy/arrayscalars.h", 196 "numpy_include/numpy/halffloat.h", 197 "numpy_include/numpy/multiarray_api.txt", 198 "numpy_include/numpy/ndarrayobject.h", 199 "numpy_include/numpy/ndarraytypes.h", [all …]
|
/external/walt/pywalt/pywalt/ |
D | minimization.py | 23 import numpy 30 laser_data = numpy.loadtxt(fname_laser) 40 p = numpy.polyfit(x, y, 1, full=True) 52 shifts = numpy.arange(min_shift, max_shift, step) 56 side = ((numpy.arange(len(tl)) + 1) / 2) % 2 62 yl = numpy.interp(tl + shift, ty, y) 63 xl = numpy.interp(tl + shift, tx, x) 69 best_shift0 = shifts[numpy.argmin(residuals0)] 70 best_shift1 = shifts[numpy.argmin(residuals1)] 90 if numpy.std(x)*2 < numpy.std(y): [all …]
|
D | screen_stats.py | 1 import numpy 6 sensor_data = numpy.loadtxt(sensor_file_name) 7 blinker_data = numpy.loadtxt(blinker_file_name) 42 (numpy.median(dt_even), numpy.std(dt_even))) 44 (numpy.median(dt_odd), numpy.std(dt_odd)))
|
/external/tensorflow/tensorflow/python/keras/engine/ |
D | compile_utils_test.py | 38 self.assertEqual(total_loss.numpy(), 1.) 43 self.assertEqual(loss_metric.result().numpy(), 1.) 57 self.assertEqual(total_loss.numpy(), 0.25) 61 self.assertEqual(loss_metric.result().numpy(), 0.25) 65 self.assertEqual(output_1_metric.result().numpy(), 0) 69 self.assertEqual(output_2_metric.result().numpy(), 0.5) 88 self.assertEqual(total_loss.numpy(), 0.25) 93 self.assertEqual(loss_metric.result().numpy(), 0.25) 97 self.assertEqual(out1_metric.result().numpy(), 0) 101 self.assertEqual(out2_metric.result().numpy(), 0.5) [all …]
|
/external/tensorflow/tensorflow/compiler/tests/ |
D | eager_test.py | 21 import numpy as np 68 self.assertEqual(11.0, da_dx.numpy()) 69 self.assertEqual(2.0, da_dy.numpy()) 132 row0 = tensor[0].numpy() 133 row1 = tensor[1].numpy() 141 self.assertAllEqual(True, i.numpy()) 147 self.assertEqual(3.0, v.numpy()) 155 self.assertEqual(1.0, val1.numpy()) 156 self.assertEqual(3.0, val2.numpy()) 175 self.assertEqual(2., grads[0][0].numpy()) [all …]
|
/external/tensorflow/tensorflow/compiler/xla/python/ |
D | bfloat16.cc | 836 bool RegisterUFunc(PyObject* numpy, const char* name) { in RegisterUFunc() argument 839 Safe_PyObjectPtr ufunc_obj = make_safe(PyObject_GetAttrString(numpy, name)); in RegisterUFunc() 1294 Safe_PyObjectPtr numpy = make_safe(PyImport_Import(numpy_str.get())); in Initialize() local 1295 if (!numpy) { in Initialize() 1383 RegisterUFunc<BinaryUFunc<bfloat16, bfloat16, ufuncs::Add>>(numpy.get(), in Initialize() 1386 numpy.get(), "subtract") && in Initialize() 1388 numpy.get(), "multiply") && in Initialize() 1390 numpy.get(), "divide") && in Initialize() 1392 numpy.get(), "logaddexp") && in Initialize() 1394 numpy.get(), "logaddexp2") && in Initialize() [all …]
|
/external/tensorflow/tensorflow/python/saved_model/ |
D | load_test.py | 112 self.assertEqual(imported.v1.numpy(), 1.0) 114 self.assertEqual(imported.v2.numpy(), 2.0) 124 self.assertEqual(imported.v1.numpy(), 1.0) 125 self.assertEqual(imported.v2.numpy(), 2.0) 263 original_output = root.f().numpy() 264 imported_output = imported.f().numpy() 276 original_output = root.f().numpy() 298 self.assertEqual(imported.asset1.asset_path.numpy(), 299 imported.asset2.asset_path.numpy()) 315 self.assertEqual(4., imported.f(constant_op.constant(2.)).numpy()) [all …]
|
/external/tensorflow/tensorflow/python/kernel_tests/ |
D | BUILD | 25 "//third_party/py/numpy", 38 "//third_party/py/numpy", 54 "//third_party/py/numpy", 70 "//third_party/py/numpy", 134 "//third_party/py/numpy", 191 "//third_party/py/numpy", 213 "//third_party/py/numpy", 234 "//third_party/py/numpy", 266 "//third_party/py/numpy", 279 "//third_party/py/numpy", [all …]
|
D | constant_op_eager_test.py | 21 import numpy as np 43 tf_ans = ops.convert_to_tensor(x).numpy() 54 tf_ans = ops.convert_to_tensor(x).numpy() 73 self.assertAllClose(np.array(orig), tf_ans.numpy()) 79 self.assertAllClose(np.array(orig), tf_ans.numpy()) 84 self.assertAllClose(np.array(orig), tf_ans.numpy()) 90 self.assertAllClose(np.array(orig), tf_ans.numpy()) 101 self.assertAllClose(np.array(orig), tf_ans.numpy()) 105 self.assertEqual(2**54, tf_ans.numpy()) 128 self.assertAllClose(np.array(orig), tf_ans.numpy()) [all …]
|
/external/tensorflow/tensorflow/examples/tutorials/mnist/ |
D | input_data.py | 28 import numpy 44 dt = numpy.dtype(numpy.uint32).newbyteorder('>') 45 return numpy.frombuffer(bytestream.read(4), dtype=dt)[0] 72 data = numpy.frombuffer(buf, dtype=numpy.uint8) 81 index_offset = numpy.arange(num_labels) * num_classes 82 labels_one_hot = numpy.zeros((num_labels, num_classes)) 110 labels = numpy.frombuffer(buf, dtype=numpy.uint8) 151 numpy.random.seed(seed1 if seed is None else seed2) 172 images = images.astype(numpy.float32) 173 images = numpy.multiply(images, 1.0 / 255.0) [all …]
|
/external/autotest/client/cros/audio/ |
D | audio_analysis.py | 8 import numpy 39 signal = numpy.array(signal) 74 signal_rms = numpy.linalg.norm(signal) / numpy.sqrt(len(signal)) 87 y_conv_w = signal * numpy.hanning(len(signal)) 93 y_f = 2.0 / length * numpy.fft.rfft(y_conv_w) 96 abs_y_f = numpy.abs(y_f) 132 return numpy.linspace(0, (result_length - 1) * val, result_length) 300 golden_x = numpy.linspace( 303 golden_y = numpy.sin(freq * 2.0 * numpy.pi * golden_x) 380 norm_golden = numpy.linalg.norm(golden_signal) [all …]
|
D | audio_analysis_unittest.py | 3 import numpy 14 numpy.random.seed(0) 75 array = numpy.random.uniform(0, 1, 1000000) 93 noise = numpy.random.standard_normal(samples) * 0.005 94 x = numpy.linspace(0.0, (samples - 1) * 1.0 / rate, samples) 95 y = (coeff_1 * numpy.sin(freq_1 * 2.0 * numpy.pi * x) + 96 coeff_2 * numpy.sin(freq_2 * 2.0 * numpy.pi * x)) + noise 135 noise = numpy.random.standard_normal(samples) * noise_amplitude 150 expected = numpy.array([0.1, 0.2, 0.3, 0.4, 0.5]) 159 numpy.random.seed(0) [all …]
|
/external/tensorflow/tensorflow/python/eager/ |
D | wrap_function_test.py | 151 self.assertEqual(1., lifted_variables[0].numpy()) 165 self.assertAllEqual(wraps_wrapped().numpy(), 166 lifted_variables[0].numpy() + 1.) 167 self.assertAllEqual(wrapped().numpy(), lifted_variables[0].numpy() + 1.) 169 self.assertAllEqual(wrapped().numpy(), pruned().numpy()) 307 self.assertEqual(1, second_output.numpy()) 308 self.assertEqual(3, v.numpy()) 312 self.assertEqual(1, does_not_increment(constant_op.constant(3)).numpy()) 313 self.assertEqual(3, v.numpy()) 330 self.assertEqual(1, f_wrapped().numpy()) [all …]
|
/external/chromium-trace/catapult/common/py_utils/py_utils/ |
D | modules_util_unittest.py | 17 numpy = FakeModule('numpy', '2.3') 19 modules_util.RequireVersion(numpy, '1.0') 24 numpy = FakeModule('numpy', '2.3') 26 modules_util.RequireVersion(numpy, '2.5') 32 numpy = FakeModule('numpy', '2.3') 34 modules_util.RequireVersion(numpy, '1.0', '2.0')
|
/external/tensorflow/tensorflow/python/kernel_tests/distributions/ |
D | BUILD | 22 "//third_party/py/numpy", 43 "//third_party/py/numpy", 72 "//third_party/py/numpy", 87 "//third_party/py/numpy", 105 "//third_party/py/numpy", 120 "//third_party/py/numpy", 140 "//third_party/py/numpy", 155 "//third_party/py/numpy", 170 "//third_party/py/numpy", 185 "//third_party/py/numpy", [all …]
|
/external/autotest/server/brillo/ |
D | audio_utils.py | 9 import numpy 204 fft_reference = numpy.fft.rfft(reference_data) 205 fft_rec = numpy.fft.rfft(rec_data) 206 fft_freqs_reference = numpy.fft.rfftfreq(len(reference_data), 208 fft_freqs_rec = numpy.fft.rfftfreq(len(rec_data), 1.0 / sample_rate) 212 numpy.argmax(numpy.abs(fft_reference))] 213 abs_fft_rec = numpy.abs(fft_rec) 214 freq_rec = fft_freqs_rec[numpy.argmax(abs_fft_rec)] 226 fft_rec_peak_val = numpy.max(abs_fft_rec)
|
/external/tensorflow/tensorflow/python/autograph/utils/ |
D | tensor_list_test.py | 62 self.assertEqual(l.count().numpy(), 1) 64 self.assertEqual(l.count().numpy(), 2) 66 self.assertEqual(l.count().numpy(), 1) 68 self.assertEqual(l.count().numpy(), 0) 69 self.assertEqual(a.numpy(), a2.numpy()) 77 self.assertEqual(l[0].numpy(), a.numpy()) 79 self.assertEqual(l[0].numpy(), b.numpy())
|
/external/tensorflow/tensorflow/python/kernel_tests/random/ |
D | BUILD | 19 "//third_party/py/numpy", 34 "//third_party/py/numpy", 52 "//third_party/py/numpy", 71 "//third_party/py/numpy", 82 "//third_party/py/numpy", 95 "//third_party/py/numpy", 110 "//third_party/py/numpy", 128 "//third_party/py/numpy", 145 "//third_party/py/numpy", 164 "//third_party/py/numpy", [all …]
|