Runner Class
Long-lived execution handle returned by Model::build(...). More...
Declaration
Included Headers
Friends Index
| struct | internal::ModelAccess |
Public Constructors Index
| Runner ()=default | |
|
Construct an empty Runner; assign from a built Runner before use. More... | |
| Runner (simaai::neat::Run run) | |
|
Wrap a Run handle with no special tensor/ingress configuration. More... | |
| Runner (simaai::neat::Run run, const simaai::neat::InputOptions &tensor_input_opt) | |
|
Wrap a Run handle that was built for tensor-mode input with the given InputOptions. More... | |
| Runner (simaai::neat::Run run, const simaai::neat::InputOptions &tensor_input_opt, std::vector< std::string > ingress_names) | |
|
Wrap a Run handle with tensor input options and explicit ingress port names (multi-input models). More... | |
| Runner (simaai::neat::Run run, std::vector< std::string > ingress_names) | |
|
Wrap a Run handle with explicit ingress port names (multi-input, non-tensor mode). More... | |
Public Operators Index
| operator bool () const noexcept | |
|
Returns true if the underlying Run is alive and ready to push/pull. More... | |
Public Member Functions Index
| bool | push (const simaai::neat::TensorList &inputs) |
|
Push a list of Tensor inputs (one per ingress port). More... | |
| bool | push (const simaai::neat::Sample &inputs) |
|
Push a list of Sample inputs (full Samples carry per-buffer metadata). More... | |
| simaai::neat::Sample | pull (int timeout_ms=-1) |
| simaai::neat::TensorList | run (const simaai::neat::TensorList &inputs, int timeout_ms=-1) |
| simaai::neat::Sample | run (const simaai::neat::Sample &inputs, int timeout_ms=-1) |
| simaai::neat::MeasureScope | start_measurement (const simaai::neat::MeasureOptions &opt={}) |
|
Start observing caller-owned push/pull code without consuming outputs. More... | |
| simaai::neat::MeasureScope | start_measurement (bool include_plugin_latency) |
|
Convenience overload: false = E2E latency/throughput only, true = include plugin latency. More... | |
| void | close () |
|
Close input (sends EOS) and release the underlying Run. More... | |
| void | close_input () |
|
Send EOS into the input queue without releasing the Run (lets pull drain in flight). More... | |
Private Member Attributes Index
| simaai::neat::Run | run_ {} |
| std::optional< simaai::neat::InputOptions > | tensor_input_opt_for_cv_ {} |
| std::vector< std::string > | ingress_names_ |
Description
Long-lived execution handle returned by Model::build(...).
Wraps an underlying Run plus the bookkeeping needed to convert user-friendly input types (cv::Mat, TensorList, Sample) into the right Sample shape for the model's appsrc. Use the Runner for streaming workloads; use the convenience Model::run() overloads for one-shot inference.
Definition at line 499 of file Model.h.
Friends
internal::ModelAccess
|
Definition at line 553 of file Model.h.