/external/tensorflow/tensorflow/python/kernel_tests/ |
D | decode_jpeg_op_test.py | 43 num_iters, argument 118 for _ in xrange(num_iters): 125 num_iters = 10 129 num_iters) 131 num_iters, False, crop_window) 133 'small.jpg', parallelism, num_iters, True, crop_window) 136 iters=num_iters, 140 iters=num_iters, 144 iters=num_iters, 149 num_iters = 10 [all …]
|
D | reduce_benchmark_test.py | 41 def _run(self, func, num_iters): argument 45 for _ in range(num_iters): 48 mean_us = (end - start) * 1e6 / num_iters 50 iters=num_iters, 52 extras={"examples_per_sec": num_iters / (end - start)})
|
/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/eager/ |
D | benchmarks_test.py | 95 def run_benchmark(func, num_iters, execution_mode=None): argument 103 for _ in xrange(num_iters): 152 def _run(self, func, num_iters, execution_mode=None): argument 153 self.run_report(run_benchmark, func, num_iters, execution_mode) 308 def _benchmark_np_multiply(self, m, num_iters): argument 311 self._run(func, num_iters) 313 def _benchmark_tf_multiply(self, m, num_iters): argument 315 self._run(func, num_iters) 317 def _benchmark_tf_conv2d(self, m1, m2, num_iters): argument 319 self._run(func, num_iters) [all …]
|
D | benchmarks_test_base.py | 53 def run_report(self, run_benchmark, func, num_iters, execution_mode=None): argument 55 total_time = run_benchmark(func, num_iters, execution_mode) 56 mean_us = total_time * 1e6 / num_iters 58 "examples_per_sec": float("{0:.3f}".format(num_iters / total_time)), 59 "us_per_example": float("{0:.3f}".format(total_time * 1e6 / num_iters)) 65 num_iters_xprof = min(100, num_iters) 81 iters=num_iters, wall_time=mean_us, extras=extras, name=benchmark_name)
|
D | remote_benchmarks_test.py | 45 def run_benchmark(func, num_iters, execution_mode=None): argument 53 for _ in xrange(num_iters): 87 def _run(self, func, num_iters=1000, execution_mode=context.ASYNC): argument 88 total_time = run_benchmark(func, num_iters, execution_mode) 89 mean_us = total_time * 1e6 / num_iters 91 iters=num_iters, 93 extras={"examples_per_sec": num_iters / total_time}) 149 self._run(func, execution_mode=context.ASYNC, num_iters=100)
|
/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 | 71 def run_graph(self, device, n, m, k, transpose_a, transpose_b, num_iters, argument 96 for _ in range(num_iters): 100 throughput = num_items * num_iters / duration / 1e9 103 ',ta:' + str(transpose_a) + '.tb:' + str(transpose_b), num_iters, 114 iters=num_iters, 118 def run_test_gpu(self, n, m, k, transpose_a, transpose_b, dtype, num_iters): argument 120 num_iters, dtype) 122 def test_round(self, num_iters): argument 129 self.run_test_gpu(n, m, k, transpose_a, transpose_b, dtype, num_iters) 134 self.run_test_gpu(n, m, k, transpose_a, transpose_b, dtype, num_iters) [all …]
|
D | conv2d_benchmark.py | 45 padding, num_iters, warmup_iters): argument 75 for _ in range(1, num_iters): 98 strides, padding, num_iters, warmup_iters): argument 123 padding, num_iters, warmup_iters) 148 duration = (time.time() - start_time) / num_iters 153 str(strides).replace(" ", ""), padding, num_iters, duration)) 168 iters=num_iters, 204 num_iters = 80 207 padding, num_iters, warmup_iters)
|
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):
|
/external/tensorflow/tensorflow/python/data/experimental/benchmarks/ |
D | map_defun_benchmark.py | 34 def _run(self, op, name=None, num_iters=3000): argument 36 wall_time = self.run_op_benchmark(op=op, iters=num_iters, warmup=True) 41 iters=num_iters, 57 num_iters = 10000 // input_size 64 num_iters=num_iters) 68 num_iters=num_iters)
|
/external/tensorflow/tensorflow/python/keras/benchmarks/layer_benchmarks/ |
D | layer_benchmarks_test_base.py | 36 def run_report(self, func, num_iters, metadata=None): argument 44 for _ in range(num_iters): 47 us_mean_time = total_time * 1e6 / num_iters 51 "value": float("{0:.3f}".format(num_iters / total_time))}, 56 num_iters_xprof = min(100, num_iters) 74 iters=num_iters, wall_time=us_mean_time, extras=extras, metrics=metrics)
|
D | layer_benchmarks_test.py | 217 def benchmark_layer_call(self, layer_cls, layer_args, inputs, num_iters): argument 225 self.run_report(fn, num_iters, metadata) 228 self, layer_cls, layer_args, inputs, num_iters): argument 237 self.run_report(fn, num_iters, metadata) 240 self, layer_cls, layer_args, inputs, num_iters): argument 253 self.run_report(fn, num_iters, metadata) 256 self, layer_cls, layer_args, inputs, num_iters): argument 264 self.run_report(fn, num_iters, metadata) 267 self, layer_cls, layer_args, inputs, num_iters): argument 276 self.run_report(fn, num_iters, metadata) [all …]
|
/external/tensorflow/tensorflow/python/framework/ |
D | graph_building_benchmark.py | 44 def run_benchmark(func, num_iters): argument 46 for _ in range(num_iters): 55 def _run_and_report(self, func, num_iters): argument 56 total_time = run_benchmark(func, num_iters) 57 mean_us = total_time * 1e6 / num_iters 59 iters=num_iters, 62 "examples_per_sec": float("{0:.3f}".format(num_iters / total_time)),
|
/external/tensorflow/tensorflow/python/eager/benchmarks/resnet50/ |
D | resnet50_graph_test.py | 71 def _report(self, label, start, num_iters, batch_size): argument 72 avg_time = (time.time() - start) / num_iters 77 iters=num_iters, wall_time=avg_time, name=name, extras=extras) 91 num_burn, num_iters = (3, 30) 95 for _ in range(num_iters): 100 self._report('apply', start, num_iters, batch_size) 120 (num_burn, num_iters) = (5, 10) 124 for _ in range(num_iters): 126 self._report('train', start, num_iters, batch_size)
|
/external/tensorflow/tensorflow/python/keras/benchmarks/ |
D | eager_microbenchmarks_test.py | 31 def _run_benchmark(func, num_iters, execution_mode=None): argument 38 for _ in range(num_iters): 50 def run_report(self, run_benchmark, func, num_iters, execution_mode=None): argument 52 total_time = run_benchmark(func, num_iters, execution_mode) 53 mean_us = total_time * 1e6 / num_iters 56 "value": float("{0:.3f}".format(num_iters / total_time)) 59 "value": float("{0:.3f}".format(total_time * 1e6 / num_iters)) 63 iters=num_iters, 91 def _run(self, func, num_iters, execution_mode=None): argument 92 self.run_report(_run_benchmark, func, num_iters, execution_mode)
|
/external/tensorflow/tensorflow/python/kernel_tests/random/ |
D | parameterized_truncated_normal_op_test.py | 394 def parameterized_vs_naive(shape, num_iters, use_gpu=False): argument 412 param_dt = timeit.timeit(lambda: sess.run(param_op), number=num_iters) 415 naive_dt = timeit.timeit(lambda: sess.run(naive_op), number=num_iters) 419 def randn_sampler_switchover(shape, num_iters, use_gpu=False): argument 461 lambda: sess.run(uniform_sampler_op), number=num_iters) 466 lambda: sess.run(randn_sampler_op), number=num_iters) 480 num_iters = 50 482 "naive TruncatedNormalOp [%d iters]") % num_iters) 487 p_dt, n_dt = parameterized_vs_naive(shape, num_iters, use_gpu) 493 iters=num_iters, [all …]
|
/external/libtextclassifier/abseil-cpp/absl/random/internal/ |
D | randen_benchmarks.cc | 55 FuncOutput operator()(const FuncInput num_iters) const { in operator ()() 56 for (size_t i = 0; i < num_iters; ++i) { in operator ()() 70 FuncOutput operator()(const FuncInput num_iters) const { in operator ()() 72 for (size_t i = 0; i < num_iters; ++i) { in operator ()() 85 FuncOutput operator()(const FuncInput num_iters) const { in operator ()() 86 for (size_t i = 0; i < num_iters - 1; ++i) { in operator ()()
|
/external/openscreen/third_party/abseil/src/absl/random/internal/ |
D | randen_benchmarks.cc | 55 FuncOutput operator()(const FuncInput num_iters) const { in operator ()() 56 for (size_t i = 0; i < num_iters; ++i) { in operator ()() 70 FuncOutput operator()(const FuncInput num_iters) const { in operator ()() 72 for (size_t i = 0; i < num_iters; ++i) { in operator ()() 85 FuncOutput operator()(const FuncInput num_iters) const { in operator ()() 86 for (size_t i = 0; i < num_iters - 1; ++i) { in operator ()()
|
/external/abseil-cpp/absl/random/internal/ |
D | randen_benchmarks.cc | 55 FuncOutput operator()(const FuncInput num_iters) const { in operator ()() 56 for (size_t i = 0; i < num_iters; ++i) { in operator ()() 70 FuncOutput operator()(const FuncInput num_iters) const { in operator ()() 72 for (size_t i = 0; i < num_iters; ++i) { in operator ()() 85 FuncOutput operator()(const FuncInput num_iters) const { in operator ()() 86 for (size_t i = 0; i < num_iters - 1; ++i) { in operator ()()
|
/external/webrtc/third_party/abseil-cpp/absl/random/internal/ |
D | randen_benchmarks.cc | 55 FuncOutput operator()(const FuncInput num_iters) const { in operator ()() 56 for (size_t i = 0; i < num_iters; ++i) { in operator ()() 70 FuncOutput operator()(const FuncInput num_iters) const { in operator ()() 72 for (size_t i = 0; i < num_iters; ++i) { in operator ()() 85 FuncOutput operator()(const FuncInput num_iters) const { in operator ()() 86 for (size_t i = 0; i < num_iters - 1; ++i) { in operator ()()
|
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/random/internal/ |
D | randen_benchmarks.cc | 55 FuncOutput operator()(const FuncInput num_iters) const { in operator ()() 56 for (size_t i = 0; i < num_iters; ++i) { in operator ()() 70 FuncOutput operator()(const FuncInput num_iters) const { in operator ()() 72 for (size_t i = 0; i < num_iters; ++i) { in operator ()() 85 FuncOutput operator()(const FuncInput num_iters) const { in operator ()() 86 for (size_t i = 0; i < num_iters - 1; ++i) { in operator ()()
|
/external/angle/third_party/abseil-cpp/absl/random/internal/ |
D | randen_benchmarks.cc | 55 FuncOutput operator()(const FuncInput num_iters) const { in operator ()() 56 for (size_t i = 0; i < num_iters; ++i) { in operator ()() 70 FuncOutput operator()(const FuncInput num_iters) const { in operator ()() 72 for (size_t i = 0; i < num_iters; ++i) { in operator ()() 85 FuncOutput operator()(const FuncInput num_iters) const { in operator ()() 86 for (size_t i = 0; i < num_iters - 1; ++i) { in operator ()()
|
/external/tensorflow/tensorflow/python/framework/experimental/ |
D | unified_api_test.py | 405 num_iters, hidden_layers, hidden_size, batch_size): argument 441 repeat=num_iters, 446 num_iters = 100 452 num_iters, 458 iters=num_iters, 462 num_iters = 100 468 num_iters, 473 name="TwoHiddenLayerMnistEager", iters=num_iters, wall_time=duration) 476 num_iters = 100 482 num_iters, [all …]
|
/external/tensorflow/tensorflow/python/training/tracking/ |
D | benchmarks_test.py | 77 def _run(self, func, num_iters, execution_mode=None): argument 80 for _ in range(num_iters): 83 mean_us = (end - start) * 1e6 / num_iters 85 iters=num_iters, 87 extras={"examples_per_sec": num_iters / (end - start)})
|