BenchmarkOptions Struct
Options for Model::benchmark() synthetic inputs and measurement. More...
Declaration
Included Headers
Public Member Attributes Index
| int | num_samples = 100 |
|
Number of measured synthetic inputs; must be greater than zero. More... | |
| std::optional< int > | original_width |
|
Synthetic source-image width, in pixels. More... | |
| std::optional< int > | original_height |
|
Synthetic source-image height, in pixels. More... | |
| std::optional< ResizeMode > | resize_mode |
|
Resize policy used to map the source geometry to the model input. More... | |
| bool | include_plugin_latency = false |
|
Include per-plugin latency collection. More... | |
Description
Options for Model::benchmark() synthetic inputs and measurement.
BoxDecode routes need source-image geometry to map detections from model coordinates back to source coordinates. Set original_width and original_height together to benchmark a specific source geometry. When they are omitted, the benchmark infers geometry from the resolved preprocess and model ingress contracts, preserving the behavior of benchmark(num_samples). Per-run benchmark geometry takes precedence over deprecated model-construction BoxDecode hints.
Definition at line 77 of file Model.h.
Public Member Attributes
include_plugin_latency
|
Include per-plugin latency collection.
Definition at line 84 of file Model.h.
num_samples
|
Number of measured synthetic inputs; must be greater than zero.
Definition at line 78 of file Model.h.
original_height
|
Synthetic source-image height, in pixels.
Definition at line 80 of file Model.h.
original_width
|
Synthetic source-image width, in pixels.
Definition at line 79 of file Model.h.
resize_mode
|
Resize policy used to map the source geometry to the model input.
When omitted, use the resolved preprocess policy, or stretch when the model route has no resize stage.
Definition at line 83 of file Model.h.
The documentation for this struct was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.