RunOptions Struct
Per-Run runtime options. More...
Declaration
Included Headers
Public Member Functions Index
| RunOptions & | enable_board_power (int sample_interval_ms=100) |
|
Enable board power monitoring using built-in auto-detect. More... | |
| RunOptions & | enable_modalix_som_power (int sample_interval_ms=100) |
|
Enable default Modalix SOM PMIC rail power monitoring for this Run. More... | |
| RunOptions & | enable_modalix_dvt_power (int sample_interval_ms=100) |
|
Enable the built-in Modalix DVT PMIC table for this Run. More... | |
| RunOptions & | disable_power_monitor () |
|
Disable power monitoring after it was enabled/configured. More... | |
Public Member Attributes Index
| RunPreset | preset = RunPreset::Balanced |
|
Convenience preset that tunes the other fields. More... | |
| int | queue_depth = 4 |
|
Capacity of the input/output buffer queues. More... | |
| OverflowPolicy | overflow_policy = ... |
|
What to do when the input queue is full. More... | |
| OutputMemory | output_memory = ... |
|
Whether output tensors are zero-copy or owned. More... | |
| bool | enable_metrics = false |
|
Collect detailed per-stage metrics in the Run's stats vectors. More... | |
| int | input_timeout_ms = -1 |
|
Default pull timeout for build()/run() input-mode paths, in milliseconds. More... | |
| RunAdvancedOptions | advanced {} |
|
Advanced tuning (rarely needed). More... | |
| PowerMonitorOptions | power_monitor {} |
|
Optional board rail power telemetry. More... | |
| std::function< void(const struct InputDropInfo &)> | on_input_drop |
|
Optional callback invoked when an input frame is dropped by the overflow policy. More... | |
Description
Per-Run runtime options.
Passed to Session::build() and Model::run().
Most fields default to sensible values. The most commonly customized are queue_depth (deeper for jittery sources, shallower for low latency) and overflow_policy (driven by the input source's behavior — see the OverflowPolicy enum docs).
Definition at line 124 of file Run.h.
Public Member Functions
disable_power_monitor()
| inline |
Disable power monitoring after it was enabled/configured.
enable_board_power()
| inline |
Enable board power monitoring using built-in auto-detect.
This is the preferred no-env path for capturing latency, throughput, and power together from any Run.
Definition at line 148 of file Run.h.
enable_modalix_dvt_power()
| inline |
Enable the built-in Modalix DVT PMIC table for this Run.
Definition at line 173 of file Run.h.
enable_modalix_som_power()
| inline |
Enable default Modalix SOM PMIC rail power monitoring for this Run.
Prefer enable_board_power() unless you need to force the SOM profile:
Definition at line 165 of file Run.h.
Public Member Attributes
advanced
|
Advanced tuning (rarely needed).
enable_metrics
|
Collect detailed per-stage metrics in the Run's stats vectors.
Definition at line 131 of file Run.h.
input_timeout_ms
|
Default pull timeout for build()/run() input-mode paths, in milliseconds.
-1 keeps framework defaults (and legacy env-var fallback). Override per-call by passing an explicit timeout_ms to the relevant pull() or run() overload.
Definition at line 138 of file Run.h.
on_input_drop
|
Optional callback invoked when an input frame is dropped by the overflow policy.
Useful for telemetry — log the drop reason, update a counter, etc. Callback runs on the pushing thread; keep it short.
Definition at line 192 of file Run.h.
output_memory
|
Whether output tensors are zero-copy or owned.
- Initialiser
overflow_policy
|
What to do when the input queue is full.
- Initialiser
power_monitor
|
Optional board rail power telemetry.
preset
|
queue_depth
|
Capacity of the input/output buffer queues.
Definition at line 126 of file Run.h.
The documentation for this struct was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.