/external/tensorflow/tensorflow/python/eager/ |
D | benchmarks_test.py | 86 def _run(self, func, num_iters): argument 90 for _ in xrange(num_iters): 93 mean_us = (end - start) * 1e6 / num_iters 94 self.report_benchmark(iters=num_iters, wall_time=mean_us, 95 extras={"examples_per_sec": num_iters/(end-start)}) 153 def _benchmark_np_multiply(self, m, num_iters): argument 156 self._run(func, num_iters) 158 def _benchmark_tf_multiply(self, m, num_iters): argument 160 self._run(func, num_iters) 162 def _benchmark_tf_multiply_op(self, m, num_iters): argument [all …]
|
/external/tensorflow/tensorflow/python/kernel_tests/ |
D | decode_jpeg_op_test.py | 44 num_iters, argument 111 for _ in xrange(num_iters): 117 num_iters = 10 121 num_iters) 123 num_iters, False, crop_window) 125 'small.jpg', parallelism, num_iters, True, crop_window) 128 iters=num_iters, 132 iters=num_iters, 136 iters=num_iters, 141 num_iters = 10 [all …]
|
D | parameterized_truncated_normal_op_test.py | 187 def parameterized_vs_naive(shape, num_iters, use_gpu=False): argument 205 param_dt = timeit.timeit(lambda: sess.run(param_op), number=num_iters) 208 naive_dt = timeit.timeit(lambda: sess.run(naive_op), number=num_iters) 221 num_iters = 50 223 "naive TruncatedNormalOp [%d iters]") % num_iters) 228 p_dt, n_dt = parameterized_vs_naive(shape, num_iters, use_gpu) 234 iters=num_iters, 237 name="naive_shape" + shape_str, iters=num_iters, wall_time=n_dt)
|
D | sparse_add_op_test.py | 213 def _s2d_add_vs_sparse_add(sparsity, n, m, num_iters=50): argument 228 s2d_total = timeit.timeit(lambda: sess.run(s2d), number=num_iters) 229 sa_total = timeit.timeit(lambda: sess.run(sa), number=num_iters) 232 return s2d_total * 1e3 / num_iters, sa_total * 1e3 / num_iters
|
/external/eigen/bench/tensors/ |
D | tensor_benchmarks.h | 36 void memcpy(int num_iters) { in memcpy() argument 39 for (int iter = 0; iter < num_iters; ++iter) { in memcpy() 43 finalizeBenchmark(static_cast<int64_t>(m_) * m_ * num_iters); in memcpy() 46 void typeCasting(int num_iters) { in typeCasting() argument 60 for (int iter = 0; iter < num_iters; ++iter) { in typeCasting() 64 finalizeBenchmark(static_cast<int64_t>(m_) * k_ * num_iters); in typeCasting() 67 void random(int num_iters) { in random() argument 75 for (int iter = 0; iter < num_iters; ++iter) { in random() 79 finalizeBenchmark(static_cast<int64_t>(m_) * m_ * num_iters); in random() 82 void slicing(int num_iters) { in slicing() argument [all …]
|
/external/tensorflow/tensorflow/python/ops/ |
D | transpose_benchmark.py | 34 def build_graph(device, input_shape, perm, datatype, num_iters): argument 55 for _ in range(1, num_iters): 65 def _run_graph(self, device, input_shape, perm, num_iters, datatype): argument 80 outputs = build_graph(device, input_shape, perm, datatype, num_iters) 88 duration = (time.time() - start_time) / num_iters 94 str(perm).replace(" ", ""), num_iters, duration, throughput)) 105 iters=num_iters, 129 num_iters = 40 132 self._run_graph("gpu", ishape, perm, num_iters, datatype) 137 self._run_graph("gpu", ishape, perm, num_iters, datatype) [all …]
|
D | matmul_benchmark.py | 67 def run_graph(self, device, n, m, k, transpose_a, transpose_b, num_iters, argument 92 for _ in range(num_iters): 96 throughput = num_items * num_iters / duration / 1e9 99 ',ta:' + str(transpose_a) + '.tb:' + str(transpose_b), num_iters, 110 iters=num_iters, 114 def run_test_gpu(self, n, m, k, transpose_a, transpose_b, dtype, num_iters): argument 116 num_iters, dtype) 118 def test_round(self, num_iters): argument 125 self.run_test_gpu(n, m, k, transpose_a, transpose_b, dtype, num_iters) 130 self.run_test_gpu(n, m, k, transpose_a, transpose_b, dtype, num_iters) [all …]
|
D | concat_benchmark.py | 82 num_iters): argument 108 for _ in range(num_iters): 113 num_inputs, axis, grad, duration / num_iters, 115 100 / (duration / num_iters) / 1e9)) 128 iters=num_iters)) 138 num_iters = [10] * len(shapes) 140 for shape, iters in zip(shapes, num_iters):
|
D | conv2d_benchmark.py | 35 num_iters, warmup_iters): argument 62 for _ in range(1, num_iters): 85 dtype, num_iters, warmup_iters): argument 107 strides, padding, dtype, num_iters, 116 duration = (time.time() - start_time) / num_iters 121 str(strides).replace(" ", ""), padding, num_iters, duration)) 135 iters=num_iters,
|
D | batch_norm_benchmark.py | 127 train, num_iters): argument 151 for _ in range(num_iters): 156 duration / num_iters)) 172 iters=num_iters, 173 wall_time=duration / num_iters)
|
/external/tensorflow/tensorflow/contrib/eager/python/examples/rnn_ptb/ |
D | rnn_ptb_graph_test.py | 65 def _report(self, label, start, num_iters, device, batch_size): argument 66 wall_time = (time.time() - start) / num_iters 71 iters=num_iters, 79 num_iters = 100 84 dtype=tf.int64)).repeat(num_iters + num_warmup) 97 for _ in range(num_iters): 99 self._report(label, start, num_iters, 119 num_iters = 100 124 dtype=tf.int64)).repeat(num_iters + num_warmup) 141 for _ in range(num_iters): [all …]
|
D | rnn_ptb_test.py | 63 def _report(self, label, start, num_iters, dev, batch_size): argument 64 wall_time = (time.time() - start) / num_iters 69 iters=num_iters,
|
/external/tensorflow/tensorflow/contrib/fused_conv/python/ops/ |
D | fused_conv2d_bias_activation_benchmark.py | 33 padding, num_iters, data_format): argument 67 for _ in range(1, num_iters): 78 padding, num_iters, data_format): argument 116 for _ in range(1, num_iters): 135 num_iters, data_format): argument 158 num_iters, data_format) 166 duration = (time.time() - start_time) / num_iters 172 num_iters, duration)) 184 iters=num_iters,
|
/external/tensorflow/tensorflow/contrib/eager/python/examples/gan/ |
D | mnist_graph_test.py | 77 def _report(self, test_name, start, num_iters, batch_size): argument 78 avg_time = (time.time() - start) / num_iters 84 iters=num_iters, wall_time=avg_time, name=name, extras=extras) 104 num_burn, num_iters = (3, 100) 116 for _ in range(num_iters): 122 self._report('train', start, num_iters, batch_size) 137 num_burn, num_iters = (30, 1000) 142 for _ in range(num_iters): 147 self._report('generate', start, num_iters, batch_size)
|
D | mnist_test.py | 45 def _report(self, test_name, start, num_iters, batch_size): argument 46 avg_time = (time.time() - start) / num_iters 52 iters=num_iters, wall_time=avg_time, name=name, extras=extras) 97 num_burn, num_iters = (30, 1000) 104 for _ in range(num_iters): 108 self._report('generate', start, num_iters, batch_size)
|
/external/tensorflow/tensorflow/contrib/eager/python/examples/resnet50/ |
D | resnet50_graph_test.py | 105 def _report(self, label, start, num_iters, batch_size): argument 106 avg_time = (time.time() - start) / num_iters 111 iters=num_iters, wall_time=avg_time, name=name, extras=extras) 125 num_burn, num_iters = (3, 30) 129 for _ in range(num_iters): 134 self._report('apply', start, num_iters, batch_size) 153 (num_burn, num_iters) = (5, 10) 157 for _ in range(num_iters): 159 self._report('train', start, num_iters, batch_size)
|
D | resnet50_test.py | 171 def _report(self, label, start, num_iters, device, batch_size, data_format): argument 172 avg_time = (time.time() - start) / num_iters 177 iters=num_iters, wall_time=avg_time, name=name, extras=extras) 193 num_iters = 30 200 for _ in xrange(num_iters): 202 self._report(label, start, num_iters, device, batch_size, data_format) 215 num_iters = 10 230 for _ in xrange(num_iters): 234 self._report(label, start, num_iters, device, batch_size, data_format)
|
/external/tensorflow/tensorflow/contrib/factorization/python/kernel_tests/ |
D | masked_matmul_benchmark.py | 62 def _run_graph(self, a_shape, b_shape, nnz, num_iters, sort=False, argument 98 for _ in range(num_iters): 107 avg_wall_time += (time.time() - start_time)/num_iters 124 iters=num_iters, 131 num_iters = 10 139 self._run_graph(a_shape, b_shape, nnz, num_iters, sort, transpose_a,
|
/external/tensorflow/tensorflow/python/kernel_tests/random/ |
D | multinomial_op_test.py | 212 def native_op_vs_composed_ops(batch_size, num_classes, num_samples, num_iters): argument 228 native_dt = timeit.timeit(lambda: sess.run(native_op), number=num_iters) 229 composed_dt = timeit.timeit(lambda: sess.run(composed_op), number=num_iters) 236 num_iters = 50 238 num_iters) 246 num_samples, num_iters) 254 iters=num_iters, 259 iters=num_iters,
|
/external/tensorflow/tensorflow/contrib/factorization/python/ops/ |
D | kmeans_test.py | 468 def _report(self, num_iters, start, end, scores): argument 471 iters=num_iters, 472 wall_time=(end - start) / num_iters, 476 def _fit(self, num_iters=10): argument 501 self._fit(num_iters=4) 509 self._fit(num_iters=4) 514 def _fit(self, num_iters=10): argument 517 for i in range(num_iters): 532 self._report(num_iters, start, time.time(), scores) 537 def _fit(self, num_iters=10): argument [all …]
|
/external/tensorflow/tensorflow/contrib/learn/python/learn/estimators/ |
D | kmeans_test.py | 475 def _report(self, num_iters, start, end, scores): argument 478 iters=num_iters, 479 wall_time=(end - start) / num_iters, 483 def _fit(self, num_iters=10): argument 508 self._fit(num_iters=4) 516 self._fit(num_iters=4) 521 def _fit(self, num_iters=10): argument 524 for i in range(num_iters): 540 self._report(num_iters, start, time.time(), scores) 545 def _fit(self, num_iters=10): argument [all …]
|
/external/mesa3d/src/gallium/tests/graw/ |
D | shader-leak.c | 17 static int num_iters = 100; variable 144 printf("Creating %d shaders\n", num_iters); in draw() 146 for (i = 0; i < num_iters; i++) { in draw() 270 num_iters = atoi(argv[1]); in main()
|
/external/tensorflow/tensorflow/python/profiler/ |
D | pprof_profiler_test.py | 143 num_iters = 5 146 c = lambda i: math_ops.less(i, num_iters) 160 self.assertEquals(num_iters, add_samples[0].value[0])
|
/external/ltp/testcases/kernel/syscalls/ptrace/ |
D | ptrace07.c | 66 const unsigned long num_iters = 1000000000; in check_regs_loop() local 82 : "r" (num_iters) : "rax", "rbx", "xmm0"); in check_regs_loop()
|
/external/pcre/pcrecpp/ |
D | pcrecpp_unittest.cc | 69 static void Timing1(int num_iters) { in Timing1() argument 73 for (int j = num_iters; j > 0; j--) { in Timing1() 78 static void Timing2(int num_iters) { in Timing2() argument 82 for (int j = num_iters; j > 0; j--) { in Timing2() 88 static void Timing3(int num_iters) { in Timing3() argument 90 for (int j = num_iters; j > 0; j--) { in Timing3()
|