InferOptions Struct
Tunables for the preprocess and combined-infer groups. More...
Declaration
Included Headers
Public Member Attributes Index
| PreprocessColorFormat | input_format = ... |
|
Color format the model expects. More... | |
| bool | normalize = false |
|
If true, apply (x - mean) / stddev normalization. More... | |
| std::vector< float > | mean |
|
Per-channel mean used when normalize is true. More... | |
| std::vector< float > | stddev |
|
Per-channel stddev used when normalize is true. More... | |
| std::string | upstream_name |
|
Name of the upstream Node the preprocess attaches to. More... | |
| std::string | preproc_next_cpu |
|
Optional CPU-side next-element override after preprocess. More... | |
| int | num_buffers_cvu = 4 |
|
CVU-side buffer pool depth for preprocess. More... | |
| int | num_buffers_mla = 4 |
|
MLA-side buffer pool depth for inference. More... | |
| int | queue_max_buffers = 0 |
|
Cap on queued buffers (0 = default). More... | |
| int64_t | queue_max_time_ns = -1 |
|
Cap on queued time in ns (-1 = unset). More... | |
| std::string | queue_leaky |
|
Queue leaky policy ("upstream", "downstream", or empty). More... | |
| bool | sync_mode = false |
|
If true, run sinks in sync (real-time) mode. More... | |
Description
Tunables for the preprocess and combined-infer groups.
Selects the input color format expected by the model, optional mean/stddev normalization, and the upstream-side queueing / buffering policy applied at the preprocess and MLA boundaries.
Definition at line 38 of file ModelGroups.h.
Public Member Attributes
input_format
|
mean
|
Per-channel mean used when normalize is true.
Definition at line 42 of file ModelGroups.h.
normalize
|
If true, apply (x - mean) / stddev normalization.
Definition at line 41 of file ModelGroups.h.
num_buffers_cvu
|
CVU-side buffer pool depth for preprocess.
Definition at line 46 of file ModelGroups.h.
num_buffers_mla
|
MLA-side buffer pool depth for inference.
Definition at line 47 of file ModelGroups.h.
preproc_next_cpu
|
Optional CPU-side next-element override after preprocess.
Definition at line 45 of file ModelGroups.h.
queue_leaky
|
Queue leaky policy ("upstream", "downstream", or empty).
Definition at line 50 of file ModelGroups.h.
queue_max_buffers
|
Cap on queued buffers (0 = default).
Definition at line 48 of file ModelGroups.h.
queue_max_time_ns
|
Cap on queued time in ns (-1 = unset).
Definition at line 49 of file ModelGroups.h.
stddev
|
Per-channel stddev used when normalize is true.
Definition at line 43 of file ModelGroups.h.
sync_mode
|
If true, run sinks in sync (real-time) mode.
Definition at line 51 of file ModelGroups.h.
upstream_name
|
Name of the upstream Node the preprocess attaches to.
Definition at line 44 of file ModelGroups.h.
The documentation for this struct was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.