Skip to main content

graphs Namespace

Definition

namespace simaai::neat::graphs { ... }

Namespaces Index

namespacedetail

Functions Index

GraphBranch (std::string input, std::vector< std::string > outputs)

Build a reusable Graph that branches one named input to several named outputs. More...

GraphCombine (std::vector< std::string > inputs, std::string output, CombinePolicy policy=CombinePolicy::ByFrame)

Build a reusable Graph that combines several named inputs into one named output. More...

Functions

Branch()

Graph simaai::neat::graphs::Branch (std::string input, std::vector< std::string > outputs)
inline

Build a reusable Graph that branches one named input to several named outputs.

Example:

 Graph branch = graphs::Branch("image", {"preview", "model"});

Conceptually:

 image -> preview
  -> model

The returned object is a normal public Graph containing one Input(input), one Output(name) per requested output, and endpoint connect(input, output) edges. At build time the compiler lowers this to the appropriate internal branch/fan-out runtime machinery while preserving the public endpoint names for Run::pull(name), diagnostics, and visualization.

Definition at line 62 of file Fragments.h.

Combine()

Graph simaai::neat::graphs::Combine (std::vector< std::string > inputs, std::string output, CombinePolicy policy=CombinePolicy::ByFrame)
inline

Build a reusable Graph that combines several named inputs into one named output.

Example:

 Graph join = graphs::Combine({"left", "right"}, "pair", CombinePolicy::ByFrame);

policy defines how samples from the named inputs are matched:

The helper only constructs public Graph topology. The compiler is responsible for lowering the multi-producer output to the internal combine stage for ByFrame / ByPts.

Definition at line 102 of file Fragments.h.


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


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.