Home
last modified time | relevance | path

Searched refs:num_calls (Results 1 – 25 of 39) sorted by relevance

12

/external/chromium-trace/catapult/common/py_utils/py_utils/
Dretry_util_unittest.py13 self.num_calls = 0
24 self.num_calls += 1
29 self.assertEqual(self.num_calls, 1)
35 self.num_calls += 1
42 self.assertEqual(self.num_calls, 6)
52 self.num_calls += 1
58 self.assertEqual(self.num_calls, 1)
64 self.num_calls += 1
70 self.assertEqual(self.num_calls, 11)
76 self.num_calls += 1
[all …]
/external/tensorflow/tensorflow/core/distributed_runtime/
Dcall_options_test.cc23 int num_calls = 0; in TEST() local
26 EXPECT_EQ(num_calls, 0); in TEST()
27 opts.SetCancelCallback([&num_calls]() { num_calls++; }); in TEST()
28 EXPECT_EQ(num_calls, 0); in TEST()
30 EXPECT_EQ(num_calls, 1); in TEST()
32 EXPECT_EQ(num_calls, 2); in TEST()
34 EXPECT_EQ(num_calls, 2); in TEST()
36 EXPECT_EQ(num_calls, 2); in TEST()
/external/v8/src/compiler/
Djs-inlining-heuristic.cc329 int const num_calls = candidate.num_functions; in TryReuseDispatch() local
332 DCHECK_EQ(num_calls, callee->op()->ValueInputCount()); in TryReuseDispatch()
512 for (int i = 0; i < num_calls; ++i) { in TryReuseDispatch()
526 (i == num_calls - 1) ? kChangeInPlace : kCloneState); in TryReuseDispatch()
534 (i == num_calls - 1) ? kChangeInPlace : kCloneState); in TryReuseDispatch()
545 callee->ReplaceInput(num_calls, jsgraph()->Dead()); in TryReuseDispatch()
546 effect_phi->ReplaceInput(num_calls, jsgraph()->Dead()); in TryReuseDispatch()
568 int const num_calls = candidate.num_functions; in CreateOrReuseDispatch() local
571 for (int i = 0; i < num_calls; ++i) { in CreateOrReuseDispatch()
575 if (i != (num_calls - 1)) { in CreateOrReuseDispatch()
[all …]
/external/tensorflow/tensorflow/python/training/
Dbasic_loops_test.py46 num_calls = [0]
49 num_calls[0] += 1
52 if num_calls[0] == 3:
58 self.assertEqual(3, num_calls[0])
85 self.num_calls = 0
89 self.num_calls += 1
90 if self.num_calls % 3 == 2:
/external/tensorflow/tensorflow/python/data/experimental/benchmarks/
Dmap_and_batch_benchmark.py116 def name(method, label, num_calls, inter_op, element_size, batch_size): argument
120 num_calls,
129 def make_dataset(element_size, num_calls, batch_size): # pylint: disable=missing-docstring argument
136 num_parallel_calls=num_calls).batch(batch_size=batch_size)
141 for num_calls, inter_op, element_size, batch_size in series:
143 (element_size * batch_size) // min(num_calls, inter_op))
145 chained_dataset = make_dataset(element_size, num_calls, batch_size)
164 name=name("chained", label, num_calls, inter_op, element_size,
190 name=name("fused", label, num_calls, inter_op, element_size,
/external/webrtc/webrtc/modules/audio_coding/acm2/
Daudio_coding_module_unittest_oldapi.cc115 int num_calls() const { in num_calls() function in webrtc::PacketizationCallbackStubOldApi
270 for (int num_calls = 0; num_calls < kNumNormalCalls; ++num_calls) { in TEST_F() local
322 EXPECT_EQ(i / k10MsBlocksPerPacket, packet_cb_.num_calls()); in TEST_F()
323 if (packet_cb_.num_calls() > 0) in TEST_F()
327 EXPECT_EQ(kLoops / k10MsBlocksPerPacket, packet_cb_.num_calls()); in TEST_F()
342 EXPECT_EQ(j, packet_cb_.num_calls()); in TEST_F()
345 EXPECT_EQ(j + 1, packet_cb_.num_calls()); in TEST_F()
358 EXPECT_EQ(kNumPackets1 + j, packet_cb_.num_calls()); in TEST_F()
361 EXPECT_EQ(kNumPackets1 + j + 1, packet_cb_.num_calls()); in TEST_F()
413 int num_calls_before = packet_cb_.num_calls(); in DoTest()
[all …]
/external/tensorflow/tensorflow/core/util/rpc/
Dcall_container.h67 explicit CallContainer(OpKernelContext* ctx, int num_calls, bool fail_fast,
99 OpKernelContext* ctx, int num_calls, bool fail_fast, bool try_rpc, in CallContainer() argument
111 CHECK_GT(num_calls, 0); in CallContainer()
141 for (int i = 0; i < num_calls; ++i) { in CallContainer()
/external/boringssl/src/tool/
Dspeed.cc58 unsigned num_calls; member
63 printf("Did %u %s operations in %uus (%.1f ops/sec)\n", num_calls, in Print()
65 (static_cast<double>(num_calls) / us) * 1000000); in Print()
70 num_calls, description.c_str(), us, in PrintWithBytes()
71 (static_cast<double>(num_calls) / us) * 1000000, in PrintWithBytes()
72 static_cast<double>(bytes_per_call * num_calls) / us); in PrintWithBytes()
144 results->num_calls = done; in TimeFunction()
249 unsigned num_calls = 0; in SpeedRSAKeyGen() local
264 num_calls++; in SpeedRSAKeyGen()
275 num_calls, size, us, in SpeedRSAKeyGen()
[all …]
/external/grpc-grpc/test/cpp/server/load_reporter/
Dload_data_store_test.cc439 EXPECT_EQ(value_for_key1.call_metrics().find(kMetric1)->second.num_calls(), in TEST_F()
440 v1.call_metrics().find(kMetric1)->second.num_calls() + in TEST_F()
441 v3.call_metrics().find(kMetric1)->second.num_calls()); in TEST_F()
446 EXPECT_EQ(value_for_key1.call_metrics().find(kMetric2)->second.num_calls(), in TEST_F()
447 v3.call_metrics().find(kMetric2)->second.num_calls()); in TEST_F()
461 EXPECT_EQ(value_for_key2.call_metrics().find(kMetric1)->second.num_calls(), in TEST_F()
462 v2.call_metrics().find(kMetric1)->second.num_calls()); in TEST_F()
466 EXPECT_EQ(value_for_key2.call_metrics().find(kMetric2)->second.num_calls(), in TEST_F()
467 v2.call_metrics().find(kMetric2)->second.num_calls()); in TEST_F()
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_termination.cc72 static atomic_uint32_t num_calls; in CheckFailed() local
73 if (atomic_fetch_add(&num_calls, 1, memory_order_relaxed) > 10) { in CheckFailed()
/external/grpc-grpc/src/cpp/server/load_reporter/
Dload_data_store.h46 explicit CallMetricValue(uint64_t num_calls = 0,
48 : num_calls_(num_calls), total_metric_value_(total_metric_value) {} in num_calls_() argument
56 uint64_t num_calls() const { return num_calls_; } in num_calls() function
136 LoadRecordValue(grpc::string metric_name, uint64_t num_calls,
Dload_data_store.cc135 LoadRecordValue::LoadRecordValue(grpc::string metric_name, uint64_t num_calls, in LoadRecordValue() argument
138 CallMetricValue(num_calls, total_metric_value)); in LoadRecordValue()
Dload_reporter.cc326 metric_value.num_calls()); in GenerateLoads()
476 const int64_t num_calls = p.second; in ProcessViewDataOtherCallMetrics() local
487 metric_name, static_cast<uint64_t>(num_calls), total_metric_value); in ProcessViewDataOtherCallMetrics()
/external/libchrome/base/test/
Dscoped_feature_list.cc216 static int num_calls = 0; in InitAndEnableFeatureWithParameters() local
217 ++num_calls; in InitAndEnableFeatureWithParameters()
219 "scoped_feature_list_trial_name" + base::NumberToString(num_calls); in InitAndEnableFeatureWithParameters()
/external/bcc/tools/lib/
Ducalls.py276 (kv[1].num_calls, kv[1].total_ns)),
288 (kv[1].num_calls, kv[1].total_ns)),
/external/tensorflow/tensorflow/lite/testing/nnapi_tflite_zip_tests/
Dutil.h46 int num_calls() const { return num_calls_; } in num_calls() function
/external/tensorflow/tensorflow/contrib/lite/testing/
Dutil.h43 int num_calls() const { return num_calls_; } in num_calls() function
/external/tensorflow/tensorflow/lite/testing/
Dutil.h43 int num_calls() const { return num_calls_; } in num_calls() function
/external/tensorflow/tensorflow/core/kernels/data/experimental/
Dmap_and_batch_dataset_op.cc299 batch_results_.front()->num_calls > 0) { in GetNextInternal()
361 num_calls = batch_size; in BatchResult()
392 int64 num_calls; // access guarded by owner's mutex member
400 result->num_calls--; in CallCompleted()
672 &result->num_calls)); in ReadBatchResult()
736 result->num_calls)); in WriteBatchResult()
/external/autotest/server/cros/network/rf_switch/
Drf_switch_ssh_tunnel_unittest.py41 self.assertEqual(0, rf_switch.RfSwitch.__init__.num_calls,
/external/webrtc/webrtc/modules/audio_processing/agc/
Dagc_manager_direct_unittest.cc81 void CallProcess(int num_calls) { in CallProcess() argument
82 for (int i = 0; i < num_calls; ++i) { in CallProcess()
88 void CallPreProc(int num_calls) { in CallPreProc() argument
89 for (int i = 0; i < num_calls; ++i) { in CallPreProc()
/external/grpc-grpc/src/core/ext/filters/client_channel/lb_policy/grpclb/proto/grpc/lb/v1/
Dload_balancer.pb.h42 int64_t num_calls; member
Dload_balancer.pb.c25 …PB_FIELD( 2, INT64 , OPTIONAL, STATIC , OTHER, grpc_lb_v1_ClientStatsPerToken, num_calls, load…
/external/python/httplib2/tests/
D__init__.py227 num_calls = 0 variable in MockHTTPBadStatusConnection
244 MockHTTPBadStatusConnection.num_calls = 0
259 MockHTTPBadStatusConnection.num_calls += 1
/external/webrtc/webrtc/modules/audio_coding/codecs/cng/
Daudio_encoder_cng_unittest.cc88 void ExpectEncodeCalls(size_t num_calls) { in ExpectEncodeCalls() argument
91 for (size_t j = 0; j < num_calls - 1; ++j) { in ExpectEncodeCalls()

12