Skip to main content

QuantOptions Struct

Construction options for a Quant Node. More...

Declaration

struct simaai::neat::QuantOptions { ... }

Included Headers

#include <Quant.h>

Public Constructors Index

QuantOptions ()=default

Default-construct with framework-default values; tune fields after construction. More...

QuantOptions (const simaai::neat::Model &model)

Initialize options from a loaded Model (pulls scale/zp from the model's quant params). More...

Public Member Attributes Index

std::stringconfig_path

Path to the kernel config JSON, if loaded from disk. More...

std::optional< nlohmann::json >config_json

Inline kernel config; takes precedence over config_path. More...

std::stringelement_name

Optional GStreamer element name (default: auto-generated). More...

std::shared_ptr< const CompiledProcessCvuContract >compiled_contract

Pre-compiled CVU contract; bypasses re-compilation. More...

intnum_buffers = 0

Override for the element's buffer pool size; 0 = use default/model. More...

intnum_buffers_model = 0

Buffer count derived from the bound model. More...

boolnum_buffers_locked = false

If true, planner won't override num_buffers. More...

Description

Construction options for a Quant Node.

Definition at line 37 of file Quant.h.

Public Constructors

QuantOptions()

simaai::neat::QuantOptions::QuantOptions ()
default

Default-construct with framework-default values; tune fields after construction.

Definition at line 39 of file Quant.h.

QuantOptions()

simaai::neat::QuantOptions::QuantOptions (const simaai::neat::Model & model)
explicit

Initialize options from a loaded Model (pulls scale/zp from the model's quant params).

Definition at line 41 of file Quant.h.

Public Member Attributes

compiled_contract

std::shared_ptr<const CompiledProcessCvuContract> simaai::neat::QuantOptions::compiled_contract

Pre-compiled CVU contract; bypasses re-compilation.

Definition at line 48 of file Quant.h.

config_json

std::optional<nlohmann::json> simaai::neat::QuantOptions::config_json

Inline kernel config; takes precedence over config_path.

Definition at line 45 of file Quant.h.

config_path

std::string simaai::neat::QuantOptions::config_path

Path to the kernel config JSON, if loaded from disk.

Definition at line 43 of file Quant.h.

43 std::string config_path;

element_name

std::string simaai::neat::QuantOptions::element_name

Optional GStreamer element name (default: auto-generated).

Definition at line 46 of file Quant.h.

46 std::string element_name;

num_buffers

int simaai::neat::QuantOptions::num_buffers = 0

Override for the element's buffer pool size; 0 = use default/model.

Definition at line 49 of file Quant.h.

49 int num_buffers = 0;

num_buffers_locked

bool simaai::neat::QuantOptions::num_buffers_locked = false

If true, planner won't override num_buffers.

Definition at line 51 of file Quant.h.

51 bool num_buffers_locked = false;

num_buffers_model

int simaai::neat::QuantOptions::num_buffers_model = 0

Buffer count derived from the bound model.

Definition at line 50 of file Quant.h.


The documentation for this struct was generated from the following file:


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.