Runtime handle for pushing inputs and pulling outputs. More...
Declaration
class simaai::neat::Run { ... }
Friends Index
Public Constructors Index
| Run ()=default |
|
|
|
| Run (const Run &)=delete |
|
|
|
| Run (Run &&) noexcept |
|
|
|
Private Constructors Index
| Run (std::shared_ptr< State > state) |
|
|
|
Public Destructor Index
Public Operators Index
Public Member Functions Index
| bool | can_push () const |
|
|
|
| bool | can_pull () const |
|
|
|
| bool | running () const |
|
|
|
| bool | push (const cv::Mat &input) |
|
|
|
| bool | try_push (const cv::Mat &input) |
|
|
|
| bool | push (const simaai::neat::Tensor &input) |
|
|
|
| bool | try_push (const simaai::neat::Tensor &input) |
|
|
|
| bool | push (const Sample &msg) |
|
|
|
| bool | try_push (const Sample &msg) |
|
|
|
| bool | push_holder (const std::shared_ptr< void > &holder) |
|
|
|
| bool | try_push_holder (const std::shared_ptr< void > &holder) |
|
|
|
| void | close_input () |
|
|
|
| PullStatus | pull (int timeout_ms, Sample &out, PullError *err=nullptr) |
|
|
|
| std::optional< Sample > | pull (int timeout_ms=-1) |
|
|
|
| std::optional< simaai::neat::Tensor > | pull_tensor (int timeout_ms=-1) |
|
|
|
| simaai::neat::Tensor | pull_tensor_or_throw (int timeout_ms=-1) |
|
|
|
| std::optional< simaai::neat::Tensor > | pull_tensor_matching (const std::string &payload_tag, int timeout_ms=-1) |
|
|
|
| Sample | push_and_pull (const cv::Mat &input, int timeout_ms=-1) |
|
|
|
| Sample | push_and_pull (const simaai::neat::Tensor &input, int timeout_ms=-1) |
|
|
|
| Sample | push_and_pull_holder (const std::shared_ptr< void > &holder, int timeout_ms=-1) |
|
|
|
| Sample | run (const cv::Mat &input, int timeout_ms=-1) |
|
|
|
| Sample | run (const simaai::neat::Tensor &input, int timeout_ms=-1) |
|
|
|
| Sample | run (const Sample &input, int timeout_ms=-1) |
|
|
|
| int | warmup (const cv::Mat &input, int warm=-1, int timeout_ms=-1) |
|
|
|
| RunStats | stats () const |
|
|
|
| InputStreamStats | input_stats () const |
|
|
|
| RunDiagSnapshot | diag_snapshot () const |
|
|
|
| std::string | report (const RunReportOptions &opt={}) const |
|
|
|
| std::string | last_error () const |
|
|
|
| std::string | diagnostics_summary () const |
|
|
|
| void | stop () |
|
|
|
| void | close () |
|
|
|
Private Member Functions Index
Private Member Attributes Index
Private Static Functions Index
| static Run | create (InputStream stream, const RunOptions &opt, const struct InputStreamOptions &stream_opt) |
|
|
|
Description
Runtime handle for pushing inputs and pulling outputs.
Definition at line 153 of file Run.h.
Public Constructors
Run()
| simaai::neat::Run::Run () |
|
default
|
Run()
| simaai::neat::Run::Run (const Run &) |
|
delete
|
Run()
| simaai::neat::Run::Run (Run &&) |
|
noexcept
|
Private Constructors
Run()
| simaai::neat::Run::Run (std::shared_ptr< State > state) |
|
explicit
|
Public Destructor
~Run()
| simaai::neat::Run::~Run () |
|
Public Operators
operator bool()
| simaai::neat::Run::operator bool () |
|
explicit
noexcept
|
operator=()
| Run& simaai::neat::Run::operator= (const Run &) |
|
delete
|
operator=()
| Run& simaai::neat::Run::operator= (Run &&) |
|
noexcept
|
Public Member Functions
can_pull()
| bool simaai::neat::Run::can_pull () |
|
can_push()
| bool simaai::neat::Run::can_push () |
|
close()
| void simaai::neat::Run::close () |
|
close_input()
| void simaai::neat::Run::close_input () |
|
diag_snapshot()
| RunDiagSnapshot simaai::neat::Run::diag_snapshot () |
|
diagnostics_summary()
| std::string simaai::neat::Run::diagnostics_summary () |
|
input_stats()
| InputStreamStats simaai::neat::Run::input_stats () |
|
last_error()
| std::string simaai::neat::Run::last_error () |
|
pull()
| PullStatus simaai::neat::Run::pull (int timeout_ms, Sample & out, PullError * err=nullptr) |
|
pull()
| std::optional<Sample> simaai::neat::Run::pull (int timeout_ms=-1) |
|
pull_tensor()
| std::optional<simaai::neat::Tensor> simaai::neat::Run::pull_tensor (int timeout_ms=-1) |
|
pull_tensor_matching()
| std::optional<simaai::neat::Tensor> simaai::neat::Run::pull_tensor_matching (const std::string & payload_tag, int timeout_ms=-1) |
|
pull_tensor_or_throw()
| simaai::neat::Tensor simaai::neat::Run::pull_tensor_or_throw (int timeout_ms=-1) |
|
push()
| bool simaai::neat::Run::push (const cv::Mat & input) |
|
push()
push()
| bool simaai::neat::Run::push (const Sample & msg) |
|
push_and_pull()
| Sample simaai::neat::Run::push_and_pull (const cv::Mat & input, int timeout_ms=-1) |
|
push_and_pull()
push_and_pull_holder()
| Sample simaai::neat::Run::push_and_pull_holder (const std::shared_ptr< void > & holder, int timeout_ms=-1) |
|
push_holder()
| bool simaai::neat::Run::push_holder (const std::shared_ptr< void > & holder) |
|
report()
run()
| Sample simaai::neat::Run::run (const cv::Mat & input, int timeout_ms=-1) |
|
run()
run()
| Sample simaai::neat::Run::run (const Sample & input, int timeout_ms=-1) |
|
running()
| bool simaai::neat::Run::running () |
|
stats()
| RunStats simaai::neat::Run::stats () |
|
stop()
| void simaai::neat::Run::stop () |
|
try_push()
| bool simaai::neat::Run::try_push (const cv::Mat & input) |
|
try_push()
try_push()
| bool simaai::neat::Run::try_push (const Sample & msg) |
|
try_push_holder()
| bool simaai::neat::Run::try_push_holder (const std::shared_ptr< void > & holder) |
|
warmup()
| int simaai::neat::Run::warmup (const cv::Mat & input, int warm=-1, int timeout_ms=-1) |
|
Private Member Functions
push_holder_impl()
| bool simaai::neat::Run::push_holder_impl (const std::shared_ptr< void > & holder, bool block) |
|
push_impl()
| bool simaai::neat::Run::push_impl (const cv::Mat & input, bool block) |
|
push_impl()
push_message_impl()
| bool simaai::neat::Run::push_message_impl (const Sample & msg, bool block) |
|
Private Member Attributes
owns_ref_
| bool simaai::neat::Run::owns_ref_ = false |
|
Definition at line 205 of file Run.h.
205 bool owns_ref_ = false;
state_
| std::shared_ptr<State> simaai::neat::Run::state_ |
|
Private Static Functions
create()
| Run simaai::neat::Run::create (InputStream stream, const RunOptions & opt, const struct InputStreamOptions & stream_opt) |
|
static
|
The documentation for this class was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.1.