Skip to main content

DequantPreparedStage Struct

Declaration

struct simaai::gst::DequantPreparedStage { ... }

Included Headers

Public Constructors Index

DequantPreparedStage ()=default
DequantPreparedStage (const DequantPreparedStage &)=delete
DequantPreparedStage (DequantPreparedStage &&other) noexcept

Public Destructor Index

~DequantPreparedStage ()

Public Operators Index

DequantPreparedStage &operator= (const DequantPreparedStage &)=delete
DequantPreparedStage &operator= (DequantPreparedStage &&other) noexcept

Public Member Functions Index

voidreset ()

Public Member Attributes Index

std::stringstage_key
std::stringinput_dtype
std::vector< std::int64_t >tensor_shape
std::stringtensor_layout
std::size_tinput_elem_bytes = 0U
std::uint64_trequired_input_bytes = 0U
std::uint64_trequired_output_bytes = 0U
boolhas_scalar_quant = false
doubleq_scale = 0.0
std::int64_tq_zp = 0
std::vector< DequantPreparedSpan >quant_spans
TensorBufferPublishContractidentity_publish_contract
std::optional< TensorBufferPreparedMetaTemplate >prepared_meta_template
GstCaps *sink_caps = nullptr
GstCaps *src_caps = nullptr

Definition at line 338 of file SimaPreparedRuntimeAbi.h.

Public Constructors

DequantPreparedStage()

simaai::gst::DequantPreparedStage::DequantPreparedStage ()
default

Definition at line 355 of file SimaPreparedRuntimeAbi.h.

DequantPreparedStage()

simaai::gst::DequantPreparedStage::DequantPreparedStage (const DequantPreparedStage &)
delete

Definition at line 360 of file SimaPreparedRuntimeAbi.h.

DequantPreparedStage()

simaai::gst::DequantPreparedStage::DequantPreparedStage (DequantPreparedStage && other)
inline noexcept

Definition at line 363 of file SimaPreparedRuntimeAbi.h.

364 : stage_key(std::move(other.stage_key)), input_dtype(std::move(other.input_dtype)),
365 tensor_shape(std::move(other.tensor_shape)), tensor_layout(std::move(other.tensor_layout)),
366 input_elem_bytes(other.input_elem_bytes), required_input_bytes(other.required_input_bytes),
367 required_output_bytes(other.required_output_bytes),
368 has_scalar_quant(other.has_scalar_quant), q_scale(other.q_scale), q_zp(other.q_zp),
369 quant_spans(std::move(other.quant_spans)),
370 identity_publish_contract(std::move(other.identity_publish_contract)),
371 prepared_meta_template(std::move(other.prepared_meta_template)), sink_caps(other.sink_caps),
372 src_caps(other.src_caps) {
373 other.input_elem_bytes = 0U;
374 other.required_input_bytes = 0U;
375 other.required_output_bytes = 0U;
376 other.has_scalar_quant = false;
377 other.q_scale = 0.0;
378 other.q_zp = 0;
379 other.sink_caps = nullptr;
380 other.src_caps = nullptr;
381 }

Public Destructor

~DequantPreparedStage()

simaai::gst::DequantPreparedStage::~DequantPreparedStage ()
inline

Definition at line 356 of file SimaPreparedRuntimeAbi.h.

357 reset();
358 }

Public Operators

operator=()

DequantPreparedStage & simaai::gst::DequantPreparedStage::operator= (const DequantPreparedStage &)
delete

Definition at line 361 of file SimaPreparedRuntimeAbi.h.

operator=()

DequantPreparedStage & simaai::gst::DequantPreparedStage::operator= (DequantPreparedStage && other)
inline noexcept

Definition at line 383 of file SimaPreparedRuntimeAbi.h.

384 if (this != &other) {
385 reset();
386 stage_key = std::move(other.stage_key);
387 input_dtype = std::move(other.input_dtype);
388 tensor_shape = std::move(other.tensor_shape);
389 tensor_layout = std::move(other.tensor_layout);
390 input_elem_bytes = other.input_elem_bytes;
391 required_input_bytes = other.required_input_bytes;
392 required_output_bytes = other.required_output_bytes;
393 has_scalar_quant = other.has_scalar_quant;
394 q_scale = other.q_scale;
395 q_zp = other.q_zp;
396 quant_spans = std::move(other.quant_spans);
397 identity_publish_contract = std::move(other.identity_publish_contract);
398 prepared_meta_template = std::move(other.prepared_meta_template);
399 sink_caps = other.sink_caps;
400 src_caps = other.src_caps;
401 other.input_elem_bytes = 0U;
402 other.required_input_bytes = 0U;
403 other.required_output_bytes = 0U;
404 other.has_scalar_quant = false;
405 other.q_scale = 0.0;
406 other.q_zp = 0;
407 other.sink_caps = nullptr;
408 other.src_caps = nullptr;
409 }
410 return *this;
411 }

Public Member Functions

reset()

void simaai::gst::DequantPreparedStage::reset ()
inline

Definition at line 413 of file SimaPreparedRuntimeAbi.h.

413 void reset() {
414 if (sink_caps) {
415 gst_caps_unref(sink_caps);
416 sink_caps = nullptr;
417 }
418 if (src_caps) {
419 gst_caps_unref(src_caps);
420 src_caps = nullptr;
421 }
422 }

Public Member Attributes

has_scalar_quant

bool simaai::gst::DequantPreparedStage::has_scalar_quant = false

Definition at line 346 of file SimaPreparedRuntimeAbi.h.

346 bool has_scalar_quant = false;

identity_publish_contract

TensorBufferPublishContract simaai::gst::DequantPreparedStage::identity_publish_contract

Definition at line 350 of file SimaPreparedRuntimeAbi.h.

350 TensorBufferPublishContract identity_publish_contract;

input_dtype

std::string simaai::gst::DequantPreparedStage::input_dtype

Definition at line 340 of file SimaPreparedRuntimeAbi.h.

340 std::string input_dtype;

input_elem_bytes

std::size_t simaai::gst::DequantPreparedStage::input_elem_bytes = 0U

Definition at line 343 of file SimaPreparedRuntimeAbi.h.

343 std::size_t input_elem_bytes = 0U;

prepared_meta_template

std::optional<TensorBufferPreparedMetaTemplate> simaai::gst::DequantPreparedStage::prepared_meta_template

Definition at line 351 of file SimaPreparedRuntimeAbi.h.

351 std::optional<TensorBufferPreparedMetaTemplate> prepared_meta_template;

q_scale

double simaai::gst::DequantPreparedStage::q_scale = 0.0

Definition at line 347 of file SimaPreparedRuntimeAbi.h.

347 double q_scale = 0.0;

q_zp

std::int64_t simaai::gst::DequantPreparedStage::q_zp = 0

Definition at line 348 of file SimaPreparedRuntimeAbi.h.

348 std::int64_t q_zp = 0;

quant_spans

std::vector<DequantPreparedSpan> simaai::gst::DequantPreparedStage::quant_spans

Definition at line 349 of file SimaPreparedRuntimeAbi.h.

349 std::vector<DequantPreparedSpan> quant_spans;

required_input_bytes

std::uint64_t simaai::gst::DequantPreparedStage::required_input_bytes = 0U

Definition at line 344 of file SimaPreparedRuntimeAbi.h.

344 std::uint64_t required_input_bytes = 0U;

required_output_bytes

std::uint64_t simaai::gst::DequantPreparedStage::required_output_bytes = 0U

Definition at line 345 of file SimaPreparedRuntimeAbi.h.

345 std::uint64_t required_output_bytes = 0U;

sink_caps

GstCaps* simaai::gst::DequantPreparedStage::sink_caps = nullptr

Definition at line 352 of file SimaPreparedRuntimeAbi.h.

352 GstCaps* sink_caps = nullptr;

src_caps

GstCaps* simaai::gst::DequantPreparedStage::src_caps = nullptr

Definition at line 353 of file SimaPreparedRuntimeAbi.h.

353 GstCaps* src_caps = nullptr;

stage_key

std::string simaai::gst::DequantPreparedStage::stage_key

Definition at line 339 of file SimaPreparedRuntimeAbi.h.

339 std::string stage_key;

tensor_layout

std::string simaai::gst::DequantPreparedStage::tensor_layout

Definition at line 342 of file SimaPreparedRuntimeAbi.h.

342 std::string tensor_layout;

tensor_shape

std::vector<std::int64_t> simaai::gst::DequantPreparedStage::tensor_shape

Definition at line 341 of file SimaPreparedRuntimeAbi.h.

341 std::vector<std::int64_t> tensor_shape;

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


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.