Home
last modified time | relevance | path

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

/external/rust/crates/criterion/benches/benchmarks/
Dmeasurement_overhead.rs1 use criterion::{criterion_group, BatchSize, Criterion};
12 b.iter_batched(|| (), |_| 1, BatchSize::SmallInput) in some_benchmark()
15 b.iter_batched(|| (), |_| 1, BatchSize::LargeInput) in some_benchmark()
18 b.iter_batched(|| (), |_| 1, BatchSize::PerIteration) in some_benchmark()
21 b.iter_batched_ref(|| (), |_| 1, BatchSize::SmallInput) in some_benchmark()
24 b.iter_batched_ref(|| (), |_| 1, BatchSize::LargeInput) in some_benchmark()
27 b.iter_batched_ref(|| (), |_| 1, BatchSize::PerIteration) in some_benchmark()
Dasync_measurement_overhead.rs1 use criterion::{async_executor::FuturesExecutor, criterion_group, BatchSize, Criterion};
20 .iter_batched(|| (), |_| async { 1 }, BatchSize::SmallInput) in some_benchmark()
24 .iter_batched(|| (), |_| async { 1 }, BatchSize::LargeInput) in some_benchmark()
28 .iter_batched(|| (), |_| async { 1 }, BatchSize::PerIteration) in some_benchmark()
32 .iter_batched_ref(|| (), |_| async { 1 }, BatchSize::SmallInput) in some_benchmark()
36 .iter_batched_ref(|| (), |_| async { 1 }, BatchSize::LargeInput) in some_benchmark()
42 BatchSize::PerIteration, in some_benchmark()
/external/llvm-project/libcxx/benchmarks/
Dalgorithms.bench.cpp163 enum class BatchSize { enum
170 BatchSize Count, F Body) { in runOpOnCopies()
174 const size_t Batch = Count == BatchSize::CountElements in runOpOnCopies()
194 state, Quantity, Order(), BatchSize::CountElements, in run()
212 state, Quantity, Order(), BatchSize::CountElements, in run()
230 state, Quantity, Order(), BatchSize::CountElements, in run()
246 state, Quantity, Order::Heap, BatchSize::CountElements, in run()
260 runOpOnCopies<ValueType>(state, Quantity, Order(), BatchSize::CountElements, in run()
279 state, Quantity, Order(), BatchSize::CountElements, [](auto& Copy) { in run()
300 state, Quantity, Order(), BatchSize::CountElements, [](auto& Copy) { in run()
/external/tensorflow/tensorflow/lite/delegates/xnnpack/
Dconv_2d_test.cc43 .BatchSize(batch_rng())
69 .BatchSize(batch_rng())
95 .BatchSize(batch_rng())
125 .BatchSize(batch_rng()) in TEST()
153 .BatchSize(batch_rng()) in TEST()
183 .BatchSize(batch_rng()) in TEST()
215 .BatchSize(batch_rng()) in TEST()
247 .BatchSize(batch_rng()) in TEST()
279 .BatchSize(batch_rng()) in TEST()
311 .BatchSize(batch_rng()) in TEST()
[all …]
Ddepth_to_space_tester.cc78 default_input_data + BatchSize() * InputHeight() * in Test()
86 BatchSize() * InputHeight() * InputWidth() * InputChannels(), in Test()
97 for (int32_t i = 0; i < BatchSize(); i++) { in Test()
105 << "batch " << i << " / " << BatchSize() << ", y position " << y in Test()
125 {BatchSize(), InputHeight(), InputWidth(), InputChannels()}}; in CreateTfLiteModel()
127 {BatchSize(), OutputHeight(), OutputWidth(), OutputChannels()}}; in CreateTfLiteModel()
Dpool_2d_tester.cc77 for (int32_t i = 0; i < BatchSize(); i++) { in Test()
102 BatchSize() * InputHeight() * InputWidth() * Channels(), in Test()
113 for (int32_t i = 0; i < BatchSize(); i++) { in Test()
122 << "batch " << i << " / " << BatchSize() << ", y position " << y in Test()
128 << "batch " << i << " / " << BatchSize() << ", y position " << y in Test()
152 {BatchSize(), InputHeight(), InputWidth(), Channels()}}; in CreateTfLiteModel()
154 {BatchSize(), OutputHeight(), OutputWidth(), Channels()}}; in CreateTfLiteModel()
Dmax_pool_2d_test.cc43 .BatchSize(batch_rng()) in TEST()
70 .BatchSize(batch_rng()) in TEST()
102 .BatchSize(batch_rng()) in TEST()
134 .BatchSize(batch_rng()) in TEST()
165 .BatchSize(batch_rng()) in TEST()
196 .BatchSize(batch_rng()) in TEST()
225 .BatchSize(batch_rng()) in TEST()
254 .BatchSize(batch_rng()) in TEST()
285 .BatchSize(batch_rng()) in TEST()
316 .BatchSize(batch_rng()) in TEST()
[all …]
Daverage_pool_2d_test.cc43 .BatchSize(batch_rng()) in TEST()
70 .BatchSize(batch_rng()) in TEST()
102 .BatchSize(batch_rng()) in TEST()
134 .BatchSize(batch_rng()) in TEST()
165 .BatchSize(batch_rng()) in TEST()
196 .BatchSize(batch_rng()) in TEST()
225 .BatchSize(batch_rng()) in TEST()
254 .BatchSize(batch_rng()) in TEST()
285 .BatchSize(batch_rng()) in TEST()
316 .BatchSize(batch_rng()) in TEST()
[all …]
Dresize_bilinear_tester.cc79 BatchSize() * InputHeight() * InputWidth() * Channels(), in Test()
86 BatchSize() * InputHeight() * InputWidth() * Channels(), in Test()
97 for (int i = 0; i < BatchSize(); i++) { in Test()
106 << "batch " << i << " / " << BatchSize() << ", y position " << y in Test()
134 {BatchSize(), InputHeight(), InputWidth(), Channels()}}; in CreateTfLiteModel()
136 {BatchSize(), OutputHeight(), OutputWidth(), Channels()}}; in CreateTfLiteModel()
Ddepth_to_space_test.cc44 .BatchSize(batch_rng()) in TEST()
69 .BatchSize(batch_rng()) in TEST()
94 .BatchSize(batch_rng()) in TEST()
119 .BatchSize(batch_rng()) in TEST()
147 .BatchSize(batch_rng()) in TEST()
Ddepthwise_conv_2d_test.cc180 .BatchSize(batch_rng()) in TEST()
207 .BatchSize(batch_rng()) in TEST()
236 .BatchSize(batch_rng()) in TEST()
267 .BatchSize(batch_rng()) in TEST()
298 .BatchSize(batch_rng()) in TEST()
329 .BatchSize(batch_rng()) in TEST()
362 .BatchSize(batch_rng()) in TEST()
393 .BatchSize(batch_rng()) in TEST()
424 .BatchSize(batch_rng()) in TEST()
455 .BatchSize(batch_rng()) in TEST()
[all …]
Ddepth_to_space_tester.h34 inline DepthToSpaceTester& BatchSize(int32_t batch_size) { in BatchSize() function
40 inline int32_t BatchSize() const { return batch_size_; } in BatchSize() function
Dconv_2d_tester.cc77 default_input_data + BatchSize() * InputHeight() * in Test()
85 BatchSize() * InputHeight() * InputWidth() * InputChannels(), in Test()
96 for (int32_t i = 0; i < BatchSize(); i++) { in Test()
105 << "batch " << i << " / " << BatchSize() << ", y position " << y in Test()
242 {BatchSize(), InputHeight(), InputWidth(), InputChannels()}}; in CreateTfLiteModel()
244 {BatchSize(), OutputHeight(), OutputWidth(), OutputChannels()}}; in CreateTfLiteModel()
Ddepthwise_conv_2d_tester.cc77 default_input_data + BatchSize() * InputHeight() * in Test()
85 BatchSize() * InputHeight() * InputWidth() * InputChannels(), in Test()
96 for (int32_t i = 0; i < BatchSize(); i++) { in Test()
105 << "batch " << i << " / " << BatchSize() << ", y position " << y in Test()
235 {BatchSize(), InputHeight(), InputWidth(), InputChannels()}}; in CreateTfLiteModel()
237 {BatchSize(), OutputHeight(), OutputWidth(), OutputChannels()}}; in CreateTfLiteModel()
Dresize_bilinear_tester.h35 inline ResizeBilinearTester& BatchSize(int32_t batch_size) { in BatchSize() function
41 inline int32_t BatchSize() const { return batch_size_; } in BatchSize() function
Dpool_2d_tester.h35 inline Pool2DTester& BatchSize(int32_t batch_size) { in BatchSize() function
41 inline int32_t BatchSize() const { return batch_size_; } in BatchSize() function
Dconv_2d_tester.h35 inline Conv2DTester& BatchSize(int32_t batch_size) { in BatchSize() function
41 inline int32_t BatchSize() const { return batch_size_; } in BatchSize() function
Ddepthwise_conv_2d_tester.h35 inline DepthwiseConv2DTester& BatchSize(int32_t batch_size) { in BatchSize() function
41 inline int32_t BatchSize() const { return batch_size_; } in BatchSize() function
/external/rust/crates/criterion/src/
Dbencher.rs7 use crate::BatchSize;
147 self.iter_batched(setup, routine, BatchSize::PerIteration); in iter_with_setup()
189 self.iter_batched(|| (), |_| routine(), BatchSize::SmallInput); in iter_with_large_drop()
198 self.iter_batched(setup, routine, BatchSize::NumBatches(1)); in iter_with_large_setup()
245 pub fn iter_batched<I, O, S, R>(&mut self, mut setup: S, mut routine: R, size: BatchSize) in iter_batched()
335 pub fn iter_batched_ref<I, O, S, R>(&mut self, mut setup: S, mut routine: R, size: BatchSize) in iter_batched_ref()
521 self.iter_batched(setup, routine, BatchSize::PerIteration); in iter_with_setup()
565 self.iter_batched(|| (), |_| routine(), BatchSize::SmallInput); in iter_with_large_drop()
575 self.iter_batched(setup, routine, BatchSize::NumBatches(1)); in iter_with_large_setup()
623 pub fn iter_batched<I, O, S, R, F>(&mut self, mut setup: S, mut routine: R, size: BatchSize) in iter_batched()
[all …]
Dlib.rs235 pub enum BatchSize { enum
279 impl BatchSize { implementation
288 BatchSize::SmallInput => (iters + 10 - 1) / 10, in iters_per_batch()
289 BatchSize::LargeInput => (iters + 1000 - 1) / 1000, in iters_per_batch()
290 BatchSize::PerIteration => 1, in iters_per_batch()
291 BatchSize::NumBatches(batches) => (iters + batches - 1) / batches, in iters_per_batch()
292 BatchSize::NumIterations(size) => size, in iters_per_batch()
293 BatchSize::__NonExhaustive => panic!("__NonExhaustive is not a valid BatchSize."), in iters_per_batch()
/external/rust/crates/criterion/tests/
Dcriterion_tests.rs7 criterion_group, criterion_main, profiler::Profiler, BatchSize, Benchmark, BenchmarkId,
304 b.iter_batched(|| vec![10], |v| v[0], BatchSize::SmallInput) in test_timing_loops()
307 b.iter_batched(|| vec![10], |v| v[0], BatchSize::LargeInput) in test_timing_loops()
310 b.iter_batched(|| vec![10], |v| v[0], BatchSize::PerIteration) in test_timing_loops()
313 b.iter_batched(|| vec![10], |v| v[0], BatchSize::NumBatches(1)) in test_timing_loops()
316 b.iter_batched(|| vec![10], |v| v[0], BatchSize::NumIterations(10)) in test_timing_loops()
319 b.iter_batched_ref(|| vec![10], |v| v[0], BatchSize::SmallInput) in test_timing_loops()
322 b.iter_batched_ref(|| vec![10], |v| v[0], BatchSize::LargeInput) in test_timing_loops()
325 b.iter_batched_ref(|| vec![10], |v| v[0], BatchSize::PerIteration) in test_timing_loops()
328 b.iter_batched_ref(|| vec![10], |v| v[0], BatchSize::NumBatches(1)) in test_timing_loops()
[all …]
/external/rust/crates/thread_local/benches/
Dthread_local.rs4 use criterion::{black_box, BatchSize};
25 BatchSize::SmallInput, in main()
/external/tensorflow/tensorflow/compiler/tf2tensorrt/segment/
Dunion_find.h133 const ClusterBatchSize& BatchSize() const { return batch_size_; } in BatchSize() function
Dsegment.cc826 node_segments[node->id()].Property().BatchSize(); in SegmentGraph()
849 ClusterBatchSize out_batch_size = out_cluster->Property().BatchSize(); in SegmentGraph()
906 node_segments[node->id()].Property().BatchSize()) { in SegmentGraph()
/external/tensorflow/tensorflow/compiler/tf2tensorrt/convert/
Dconvert_graph.cc146 info->max_batch_size = segment_property.BatchSize().GetOptionalMaxBatchSize(); in GetEngineInfo()