SSCMA-Micro CPP SDK  v2.0.0
SSCMA-Micro is a cross-platform machine learning inference framework designed for embedded devices.
ma::server::callback::StaticResource Struct Referencefinal

#include <resource.hpp>

Collaboration diagram for ma::server::callback::StaticResource:

Static Public Member Functions

static StaticResourcegetInstance () noexcept
 

Public Attributes

Devicedevice = nullptr
 
Engineengine = nullptr
 
Executorexecutor = nullptr
 
std::atomic< std::size_t > current_task_id = 0
 
size_t current_model_id = 0
 
size_t current_sensor_id = 0
 
size_t current_algorithm_id = 0
 
float shared_threshold_score = 0.25
 
float shared_threshold_nms = 0.45
 
std::atomic< bool > is_ready = false
 
std::atomic< bool > is_sample = false
 
std::atomic< bool > is_invoke = false
 

Member Function Documentation

◆ getInstance()

static StaticResource* ma::server::callback::StaticResource::getInstance ( )
inlinestaticnoexcept

Member Data Documentation

◆ current_algorithm_id

size_t ma::server::callback::StaticResource::current_algorithm_id = 0

◆ current_model_id

size_t ma::server::callback::StaticResource::current_model_id = 0

◆ current_sensor_id

size_t ma::server::callback::StaticResource::current_sensor_id = 0

◆ current_task_id

std::atomic<std::size_t> ma::server::callback::StaticResource::current_task_id = 0

◆ device

Device* ma::server::callback::StaticResource::device = nullptr

◆ engine

Engine* ma::server::callback::StaticResource::engine = nullptr

◆ executor

Executor* ma::server::callback::StaticResource::executor = nullptr

◆ is_invoke

std::atomic<bool> ma::server::callback::StaticResource::is_invoke = false

◆ is_ready

std::atomic<bool> ma::server::callback::StaticResource::is_ready = false

◆ is_sample

std::atomic<bool> ma::server::callback::StaticResource::is_sample = false

◆ shared_threshold_nms

float ma::server::callback::StaticResource::shared_threshold_nms = 0.45

◆ shared_threshold_score

float ma::server::callback::StaticResource::shared_threshold_score = 0.25