Skip to main content

Model Class

Declaration

class simaai::neat::Model { ... }

Included Headers

#include <Model.h>

Enumerations Index

enum classStage { ... }

Friends Index

structinternal::ModelAccess

Public Constructors Index

Model (const std::string &mpk_path)
Model (const std::string &mpk_path, const Options &opt)
Model (Model &&) noexcept

Public Destructor Index

~Model ()

Public Operators Index

Model &operator= (Model &&) noexcept

Public Member Functions Index

simaai::neat::NodeGrouppreprocess () const
simaai::neat::NodeGroupinference () const
simaai::neat::NodeGrouppostprocess () const
simaai::neat::NodeGroupsession () const
simaai::neat::NodeGroupsession (SessionOptions opt) const
TensorSpecinput_spec () const
TensorSpecoutput_spec () const
std::unordered_map< std::string, std::string >metadata () const
NodeGroupfragment (Stage stage) const
std::stringbackend_fragment (Stage stage) const
simaai::neat::InputOptionsinput_appsrc_options (bool tensor_mode) const
std::stringfind_config_path_by_plugin (const std::string &plugin_id) const
std::stringfind_config_path_by_processor (const std::string &processor) const
std::stringinfer_output_name () const
Runnerbuild ()
Runnerbuild (const SessionOptions &opt)
Runnerbuild (const simaai::neat::Tensor &input, const SessionOptions &opt=default_session_options(), const simaai::neat::RunOptions &run_opt=default_run_options())
Runnerbuild (const simaai::neat::Sample &input, const SessionOptions &opt=default_session_options(), const simaai::neat::RunOptions &run_opt=default_run_options())
simaai::neat::Samplerun (const simaai::neat::Tensor &input, int timeout_ms=-1)
simaai::neat::Samplerun (const std::vector< Tensor > &inputs, int timeout_ms=-1)
simaai::neat::Samplerun (const simaai::neat::Sample &input, int timeout_ms=-1)

Private Member Attributes Index

std::unique_ptr< Impl >impl_

Private Static Functions Index

static const SessionOptions &default_session_options ()
static const simaai::neat::RunOptions &default_run_options ()

Definition at line 33 of file Model.h.

Enumerations

Stage

enum class Stage
strong
Enumeration values
Preprocess
Inference
Postprocess
Full

Definition at line 97 of file Model.h.

Friends

internal::ModelAccess

friend struct internal::ModelAccess

Definition at line 178 of file Model.h.

178 friend struct internal::ModelAccess;

Public Constructors

Model()

simaai::neat::Model::Model (const std::string & mpk_path)
explicit

Definition at line 99 of file Model.h.

Model()

simaai::neat::Model::Model (const std::string & mpk_path, const Options & opt)
explicit

Definition at line 100 of file Model.h.

Model()

simaai::neat::Model::Model (Model &&)
noexcept

Definition at line 102 of file Model.h.

Public Destructor

~Model()

simaai::neat::Model::~Model ()

Definition at line 104 of file Model.h.

Public Operators

operator=()

Model& simaai::neat::Model::operator= (Model &&)
noexcept

Definition at line 103 of file Model.h.

Public Member Functions

backend_fragment()

std::string simaai::neat::Model::backend_fragment (Stage stage)

Definition at line 120 of file Model.h.

build()

Runner simaai::neat::Model::build ()

Definition at line 156 of file Model.h.

build()

Runner simaai::neat::Model::build (const SessionOptions & opt)

Definition at line 157 of file Model.h.

build()

Runner simaai::neat::Model::build (const simaai::neat::Tensor & input, const SessionOptions & opt=default_session_options(), const simaai::neat::RunOptions & run_opt=default_run_options())

Definition at line 158 of file Model.h.

build()

Runner simaai::neat::Model::build (const simaai::neat::Sample & input, const SessionOptions & opt=default_session_options(), const simaai::neat::RunOptions & run_opt=default_run_options())

Definition at line 161 of file Model.h.

find_config_path_by_plugin()

std::string simaai::neat::Model::find_config_path_by_plugin (const std::string & plugin_id)

Definition at line 123 of file Model.h.

find_config_path_by_processor()

std::string simaai::neat::Model::find_config_path_by_processor (const std::string & processor)

Definition at line 124 of file Model.h.

fragment()

NodeGroup simaai::neat::Model::fragment (Stage stage)

Definition at line 119 of file Model.h.

infer_output_name()

std::string simaai::neat::Model::infer_output_name ()

Definition at line 125 of file Model.h.

inference()

simaai::neat::NodeGroup simaai::neat::Model::inference ()

Definition at line 108 of file Model.h.

input_appsrc_options()

simaai::neat::InputOptions simaai::neat::Model::input_appsrc_options (bool tensor_mode)

Definition at line 122 of file Model.h.

input_spec()

TensorSpec simaai::neat::Model::input_spec ()

Definition at line 114 of file Model.h.

metadata()

std::unordered_map<std::string, std::string> simaai::neat::Model::metadata ()

Definition at line 116 of file Model.h.

output_spec()

TensorSpec simaai::neat::Model::output_spec ()

Definition at line 115 of file Model.h.

postprocess()

simaai::neat::NodeGroup simaai::neat::Model::postprocess ()

Definition at line 109 of file Model.h.

preprocess()

simaai::neat::NodeGroup simaai::neat::Model::preprocess ()

Definition at line 107 of file Model.h.

run()

simaai::neat::Sample simaai::neat::Model::run (const simaai::neat::Tensor & input, int timeout_ms=-1)

Definition at line 170 of file Model.h.

run()

simaai::neat::Sample simaai::neat::Model::run (const std::vector< Tensor > & inputs, int timeout_ms=-1)

Definition at line 171 of file Model.h.

run()

simaai::neat::Sample simaai::neat::Model::run (const simaai::neat::Sample & input, int timeout_ms=-1)

Definition at line 172 of file Model.h.

session()

simaai::neat::NodeGroup simaai::neat::Model::session ()

Definition at line 110 of file Model.h.

session()

simaai::neat::NodeGroup simaai::neat::Model::session (SessionOptions opt)

Definition at line 111 of file Model.h.

Private Member Attributes

impl_

std::unique_ptr<Impl> simaai::neat::Model::impl_

Definition at line 180 of file Model.h.

179 struct Impl;

Private Static Functions

default_run_options()

const simaai::neat::RunOptions& simaai::neat::Model::default_run_options ()
static

Definition at line 153 of file Model.h.

default_session_options()

const SessionOptions& simaai::neat::Model::default_session_options ()
static

Definition at line 152 of file Model.h.


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


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.1.