Build, validate, and run deterministic GStreamer pipelines. More...
Declaration
class simaai::neat::Session { ... }
Public Member Typedefs Index
Public Constructors Index
Public Destructor Index
Public Operators Index
Public Member Functions Index
| Session & | add (std::shared_ptr< Node > node) |
|
|
|
| Session & | add (const NodeGroup &group) |
|
|
|
| Session & | add (NodeGroup &&group) |
|
|
|
| Session & | custom (std::string fragment) |
|
|
|
| Session & | custom (std::string fragment, InputRole role) |
|
|
|
| void | run () |
|
|
|
| Sample | run (const cv::Mat &input, const RunOptions &opt={}) |
|
|
|
| Sample | run (const simaai::neat::Tensor &input, const RunOptions &opt={}) |
|
|
|
| Run | build (const cv::Mat &input, RunMode mode=RunMode::Async, const RunOptions &opt={}) |
|
|
|
| Run | build (const simaai::neat::Tensor &input, RunMode mode=RunMode::Async, const RunOptions &opt={}) |
|
|
|
| Run | build (const Sample &input, RunMode mode=RunMode::Async, const RunOptions &opt={}) |
|
|
|
| SessionReport | validate (const ValidateOptions &opt, const cv::Mat &input) const |
|
|
|
| RtspServerHandle | run_rtsp (const RtspServerOptions &opt) |
|
|
|
| SessionReport | validate (const ValidateOptions &opt={}) const |
|
|
|
| Session & | add_output_tensor (const OutputTensorOptions &opt={}) |
|
|
|
| std::string | describe (const GraphPrinter::Options &opt={}) const |
|
|
|
| std::string | describe_backend (bool insert_boundaries=false) const |
|
|
|
| void | set_guard (std::shared_ptr< void > guard) |
|
|
|
| void | set_tensor_callback (TensorCallback cb) |
|
|
|
| void | save (const std::string &path) const |
|
|
|
| Run | build (const RunOptions &opt={}) |
|
|
|
| const std::string & | last_pipeline () const |
|
|
|
Private Member Functions Index
Private Member Attributes Index
Public Static Functions Index
Description
Build, validate, and run deterministic GStreamer pipelines.
Session assembles Nodes/NodeGroups into a reproducible pipeline string and returns Run handles for push/pull execution.
Definition at line 76 of file Session.h.
Public Member Typedefs
TensorCallback
| using simaai::neat::Session::TensorCallback = std::function<bool(const simaai::neat::Tensor&)> |
|
Public Constructors
Session()
Session()
| simaai::neat::Session::Session (const Session &) |
|
delete
|
Session()
| simaai::neat::Session::Session (Session &&) |
|
noexcept
|
Public Destructor
~Session()
| simaai::neat::Session::~Session () |
|
Public Operators
operator=()
| Session& simaai::neat::Session::operator= (const Session &) |
|
delete
|
operator=()
| Session& simaai::neat::Session::operator= (Session &&) |
|
noexcept
|
Public Member Functions
add()
| Session& simaai::neat::Session::add (std::shared_ptr< Node > node) |
|
add()
| Session& simaai::neat::Session::add (const NodeGroup & group) |
|
add()
| Session& simaai::neat::Session::add (NodeGroup && group) |
|
add_output_tensor()
build()
build()
build()
build()
| Run simaai::neat::Session::build (const RunOptions & opt={}) |
|
custom()
| Session& simaai::neat::Session::custom (std::string fragment) |
|
custom()
| Session& simaai::neat::Session::custom (std::string fragment, InputRole role) |
|
describe()
| std::string simaai::neat::Session::describe (const GraphPrinter::Options & opt={}) |
|
describe_backend()
| std::string simaai::neat::Session::describe_backend (bool insert_boundaries=false) |
|
last_pipeline()
| const std::string& simaai::neat::Session::last_pipeline () |
|
inline
|
Definition at line 133 of file Session.h.
134 return last_pipeline_;
135 }
run()
| void simaai::neat::Session::run () |
|
run()
| Sample simaai::neat::Session::run (const cv::Mat & input, const RunOptions & opt={}) |
|
run()
run_rtsp()
save()
| void simaai::neat::Session::save (const std::string & path) |
|
set_guard()
| void simaai::neat::Session::set_guard (std::shared_ptr< void > guard) |
|
set_tensor_callback()
validate()
| SessionReport simaai::neat::Session::validate (const ValidateOptions & opt, const cv::Mat & input) |
|
validate()
| SessionReport simaai::neat::Session::validate (const ValidateOptions & opt={}) |
|
Private Member Functions
build_cached_source()
| void simaai::neat::Session::build_cached_source () |
|
Private Member Attributes
built_
| std::unique_ptr<BuiltState> simaai::neat::Session::built_ |
|
Definition at line 159 of file Session.h.
159 std::unique_ptr<BuiltState> built_;
built_version_
| uint64_t simaai::neat::Session::built_version_ = 0 |
|
Definition at line 161 of file Session.h.
161 uint64_t built_version_ = 0;
groups_
| std::vector<GroupMeta> simaai::neat::Session::groups_ |
|
Definition at line 152 of file Session.h.
152 std::vector<GroupMeta> groups_;
guard_
| std::shared_ptr<void> simaai::neat::Session::guard_ |
|
Definition at line 154 of file Session.h.
154 std::shared_ptr<void> guard_;
last_pipeline_
| std::string simaai::neat::Session::last_pipeline_ |
|
Definition at line 153 of file Session.h.
153 std::string last_pipeline_;
last_sima_manifest_json_
| std::string simaai::neat::Session::last_sima_manifest_json_ |
|
Definition at line 157 of file Session.h.
157 std::string last_sima_manifest_json_;
nodes_
| std::vector<std::shared_ptr<Node> > simaai::neat::Session::nodes_ |
|
Definition at line 151 of file Session.h.
151 std::vector<std::shared_ptr<Node>> nodes_;
nodes_version_
| std::atomic<uint64_t> simaai::neat::Session::nodes_version_ {0} |
|
Definition at line 158 of file Session.h.
158 std::atomic<uint64_t> nodes_version_{0};
opt_
| SessionOptions simaai::neat::Session::opt_ {} |
|
Definition at line 155 of file Session.h.
155 SessionOptions opt_{};
run_cache_
| std::unique_ptr<RunCache> simaai::neat::Session::run_cache_ |
|
Definition at line 160 of file Session.h.
160 std::unique_ptr<RunCache> run_cache_;
tensor_cb_
| TensorCallback simaai::neat::Session::tensor_cb_ |
|
Public Static Functions
load()
| Session simaai::neat::Session::load (const std::string & path) |
|
static
|
The documentation for this class was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.1.