/external/tensorflow/tensorflow/compiler/tests/ |
D | matrix_triangular_solve_op_test.py | 69 a = np.tril(rng.randn(5, 5)) 70 b = rng.randn(5, 7) 76 a = rng.randn(5, 5) # the `a` matrix is not lower-triangular 77 b = rng.randn(5, 7) 83 a = np.tril(rng.randn(5, 5) + rng.randn(5, 5) * 1j) 84 b = rng.randn(5, 7) + rng.randn(5, 7) * 1j 96 b = rng.randn(*b_shape) 104 b = rng.randn(n, n) 111 a = rng.randn(3, 4).astype(dtype) 112 b = rng.randn(4, 4).astype(dtype) [all …]
|
/external/tensorflow/tensorflow/contrib/bayesflow/python/kernel_tests/ |
D | mcmc_diagnostics_test.py | 69 x_=rng.randn(5000).astype(np.float32), 81 x_=rng.randn(5000, 2).astype(np.float32), 98 x_=rng.randn(5000).astype(np.float32), 110 x_=rng.randn(5000, 2).astype(np.float32), 122 iid_x_ = rng.randn(5000, 1).astype(np.float32) 140 iid_x_ = rng.randn(5000, 1).astype(np.float32) 155 iid_x_ = rng.randn(5000, 1).astype(np.float32) 157 y_ = rng.randn(50000).astype(np.float32) 182 iid_x_ = rng.randn(500, 1).astype(np.float32) 209 iid_x_ = rng.randn(500, 1).astype(np.float32) [all …]
|
/external/tensorflow/tensorflow/python/kernel_tests/ |
D | betainc_op_test.py | 113 a_s = np.abs(np.random.randn(10, 10) * 30) # in (0, infty) 114 b_s = np.abs(np.random.randn(10, 10) * 30) # in (0, infty) 119 a_s = np.abs(np.random.randn(10, 10) * 30) # in (0, infty) 120 b_s = np.abs(np.random.randn(10, 10) * 30) # in (0, infty) 125 a_s = np.abs(np.random.randn(10, 10) * 1e15) # in (0, infty) 126 b_s = np.abs(np.random.randn(10, 10) * 1e15) # in (0, infty) 131 a_s = np.abs(np.random.randn(10, 10) * 1e-16) # in (0, infty) 132 b_s = np.abs(np.random.randn(10, 10) * 1e-16) # in (0, infty) 137 a_s = np.abs(np.random.randn(10, 10) * 1e-8) # in (0, infty) 138 b_s = np.abs(np.random.randn(10, 10) * 1e-8) # in (0, infty) [all …]
|
D | stack_op_test.py | 49 data = np.random.randn(*shape).astype(dtype) 61 data = np.random.randn(*shape).astype(np.float32) 70 data = np.random.randn(*shape).astype(np.float32) 80 data = np.random.randn(*shape).astype(dtype) 103 data = np.random.randn(*shape).astype(np.float32) 109 data = np.random.randn(*shape).astype(np.float32) 117 data = np.random.randn(*shape).astype(np.float32) 123 data = np.random.randn(*shape).astype(np.float32) 130 data = np.random.randn(*shape) 142 data = np.random.randn(*shape)
|
D | cholesky_op_test.py | 241 data = np.random.randn(33, 33).astype(np.float32) 243 grad_data = np.random.randn(*data.shape).astype(np.float32) 263 data = np.random.randn(shape[0], shape[1]) 266 data += 1j * np.random.randn(shape[0], shape[1]) 272 data = np.random.randn() 275 data += 1j * np.random.randn() 278 np.random.randn(shape[0], shape[1]), dtype) 366 np.random.randn(*matrix.shape).astype(np.float32))
|
D | unstack_op_test.py | 49 data = np.random.randn(*shape).astype(dtype) 66 data = np.random.randn(*shape).astype(dtype) 78 data = np.random.randn(*shape) 90 data = np.random.randn(*shape)
|
D | argmax_op_test.py | 58 x = np.asarray(100 * np.random.randn(200), dtype=dtype) 65 x = np.asarray(100 * np.random.randn(3, 2, 4, 5, 6), dtype=dtype) 77 x = np.asarray(100 * np.random.randn(200), dtype=np.float32)
|
D | sparse_add_op_test.py | 54 x = np.random.randn(n, m).astype(np_dtype) 162 rand_vals_np = np.random.randn(n, m).astype(dtype) 163 dense_np = np.random.randn(n, m).astype(dtype) 181 rand_vals_np = np.random.randn(n, m).astype(np.float32) 182 dense_np = np.random.randn(n, m).astype(np.float32)
|
D | bias_op_test.py | 211 self._testAll(np.random.randn(*shape), np.random.randn(shape[-1])) 217 np.random.randn(*shape), 218 np.random.randn(shape[-1]), dtypes.float64, data_format, use_gpu)
|
D | where_op_test.py | 95 x = np.random.randn(*shape) + 1j * np.random.randn(*shape) 96 x = (np.random.randn(*shape) > 0).astype(dtype)
|
/external/tensorflow/tensorflow/contrib/distributions/python/kernel_tests/ |
D | sample_stats_test.py | 113 x = rng.randn(2, 3, 4).astype(self.dtype) 115 x = 1j * rng.randn(2, 3, 4).astype(self.dtype) 120 x = rng.randn(3, 4, 5).astype(self.dtype) 122 x = 1j * rng.randn(3, 4, 5).astype(self.dtype) 127 x = rng.randn(2, 3, 4).astype(self.dtype) 129 x = 1j * rng.randn(2, 3, 4).astype(self.dtype) 134 x = rng.randn(3, 4, 5).astype(self.dtype) 136 x = 1j * rng.randn(3, 4, 5).astype(self.dtype) 141 x = rng.randn(3, 4, 5).astype(self.dtype) 143 x = 1j * rng.randn(3, 4, 5).astype(self.dtype) [all …]
|
D | vector_sinh_arcsinh_diag_test.py | 37 loc = rng.randn(d) 50 x = rng.randn(5, d) 67 loc = rng.randn(d) 81 x = rng.randn(5, d) 98 loc = rng.randn(d) 143 loc = rng.randn(d) 188 loc = rng.randn(d) 208 skewness=rng.randn(d) * 0.5, 235 skewness=rng.randn(d) * 0.5,
|
D | sinh_arcsinh_test.py | 36 loc = rng.randn(b) 47 x = rng.randn(5, b) 80 loc = rng.randn(b) 92 x = rng.randn(5, b) 108 loc = 0.1 * rng.randn(batch_size) 192 loc = rng.randn(batch_size)
|
D | mixture_test.py | 407 np.random.randn(3, 4).astype(np.float32) 434 np.random.randn(2, 2, 3).astype(np.float32) 460 np.random.randn(2, 3).astype(np.float32), 461 np.random.randn(4, 2, 3).astype(np.float32) 488 np.random.randn(2, 3, 4).astype(np.float32), 489 np.random.randn(4, 2, 3, 4).astype(np.float32) 728 np.array(np.random.randn()).astype(np.float32) 775 np.random.randn(batch_size).astype(np.float32) 854 logits=np.random.randn(batch_size, num_components)) 856 variables.Variable(np.random.randn(batch_size, num_features)) [all …]
|
/external/tensorflow/tensorflow/contrib/distributions/python/kernel_tests/bijectors/ |
D | reshape_test.py | 53 expected_x = np.random.randn(4, 3, 2) 102 expected_x = np.random.randn(4, 3, 1) 105 expected_x_scalar = np.random.randn(1,) 159 x = np.random.randn(4, 3, 2) 177 x = np.random.randn(4, 3, 2) 193 x1 = np.random.randn(4, 2, 3) 194 x2 = np.random.randn(4, 1, 1, 5) 211 expected_x = np.random.randn(4, 6) 231 expected_x = np.random.randn(4, 2, 3) 249 expected_x = np.random.randn(4, 4) [all …]
|
D | softplus_test.py | 54 x = 2 * rng.randn(2, 10) 63 x = 2 * rng.randn(2, 10) 82 x = 2 * rng.randn(2, 10)
|
D | permute_test.py | 38 expected_x = np.random.randn(4, 2, 3) 78 x = np.random.randn(4, 2, 3)
|
/external/tensorflow/tensorflow/contrib/gan/python/eval/python/ |
D | classifier_metrics_test.py | 294 test_pool_real_a = np.float32(np.random.randn(512, 256)) 295 test_pool_gen_a = np.float32(np.random.randn(512, 256)) 318 test_pool_reals.append(np.float32(np.random.randn(2048, 256) * i)) 319 test_pool_gens.append(np.float32(np.random.randn(2048, 256) * i)) 343 test_pool_real_a = np.float32(np.random.randn(512, 256)) 344 test_pool_gen_a = np.float32(np.random.randn(512, 256))
|
/external/tensorflow/tensorflow/contrib/nn/python/ops/ |
D | scaled_softplus_test.py | 33 x = np.random.randn(3, 4).astype(np.float32) 34 x64 = np.random.randn(3, 4).astype(np.float64) 50 x_np = np.random.randn(*x_shape).astype(np.float32)
|
/external/tensorflow/tensorflow/contrib/learn/python/learn/estimators/ |
D | regression_test.py | 36 weights = 10 * rng.randn(n_weights) 38 y += rng.randn(len(x)) * 0.05 + rng.normal(bias, 0.01)
|
/external/tensorflow/tensorflow/contrib/rnn/python/kernel_tests/ |
D | core_rnn_test.py | 173 input_value = np.random.randn(batch_size, input_size) 206 input_value = np.random.randn(batch_size, input_size) 233 input_value = np.random.randn(batch_size, input_size) 329 input_value = np.random.randn(batch_size, input_size) 355 input_value = np.random.randn(batch_size, input_size) 387 input_value = np.random.randn(batch_size, input_size) 420 input_value = np.random.randn(batch_size, input_size) 479 input_value = np.random.randn(batch_size, input_size) 521 input_value = np.random.randn(batch_size, input_size) 576 input_value = np.random.randn(batch_size, input_size) [all …]
|
/external/tensorflow/tensorflow/contrib/seq2seq/python/kernel_tests/ |
D | decoder_test.py | 49 inputs = np.random.randn(max_time, batch_size, 52 inputs = np.random.randn(batch_size, max_time, 126 inputs = np.random.randn(batch_size, max_time,
|
/external/tensorflow/tensorflow/python/kernel_tests/distributions/ |
D | util_test.py | 745 self._run_test(self._rng.randn(3, int(1*2/2))) 748 self._run_test(self._rng.randn(int(4*5/2))) 751 self._run_test(self._rng.randn(2, 3, int(3*4/2))) 754 self._run_test(self._rng.randn(2, 3, int(3*4/2)), use_deferred_shape=True) 757 self._run_test(self._rng.randn(2, 3, int(7*8/2)), use_deferred_shape=True) 760 self._run_test(self._rng.randn(2, 3, int(7*8/2))) 763 self._run_test(self._rng.randn(3, int(1*2/2)), upper=True) 766 self._run_test(self._rng.randn(int(4*5/2)), upper=True) 769 self._run_test(self._rng.randn(2, 2, int(3*4/2)), upper=True) 772 self._run_test(self._rng.randn(2, 2, int(3*4/2)), [all …]
|
/external/tensorflow/tensorflow/python/kernel_tests/linalg/ |
D | linear_operator_identity_test.py | 86 x = rng.randn(2, 3).astype(np.float16) 148 x = rng.randn(3, 3).astype(np.float32) 188 feed_dict = {x: rng.randn(1, 2, 3, 4)} 342 x = rng.randn(2, 3).astype(np.float16) 355 x = rng.randn(3, 3).astype(np.float32)
|
/external/tensorflow/tensorflow/python/ops/ |
D | nn_test.py | 82 x_np = np.random.randn(*x_shape).astype(np.float32) 107 x_np = np.random.randn(*x_shape).astype(np.float64) 129 x_np = np.random.randn(*x_shape).astype(np.float32) 143 x_np = np.random.randn(*x_shape).astype(np.float64) 170 x_np = np.random.randn(*x_shape).astype(np.float32) 192 x_np = np.random.randn(*x_shape).astype(np.float64) 493 weights = np.random.randn(num_classes, dim).astype(np.float32) 494 biases = np.random.randn(num_classes).astype(np.float32) 495 hidden_acts = np.random.randn(batch_size, dim).astype(np.float32) 860 x = np.random.randn(3, 4).astype(np.float32) [all …]
|