Map.h File
Simple map-style stage helpers (Sample/Tensor). More...
Included Headers
#include "graph/StageExecutor.h"
#include "graph/nodes/StageNode.h"
#include <functional>
#include <memory>
#include <string>
#include <utility>
#include <vector>
Namespaces Index
| namespace | simaai |
| namespace | neat |
| namespace | graph |
| namespace | nodes |
Description
Simple map-style stage helpers (Sample/Tensor).
File Listing
The file content with the documentation metadata removed is:
8#include "graph/StageExecutor.h"
9#include "graph/nodes/StageNode.h"
17namespace simaai::neat {
18struct Tensor;
21namespace simaai::neat::graph::nodes {
23using SampleMapFn = std::function<void(Sample&)>;
24using TensorMapFn = std::function<void(Sample&, simaai::neat::Tensor&)>;
25using SampleMapTransformFn = std::function<Sample(Sample)>;
27std::shared_ptr<simaai::neat::graph::Node> Map(SampleMapFn fn, std::string label = {},
29 StageNode::OutputSpecFn out_fn = {});
31std::shared_ptr<simaai::neat::graph::Node> TensorMap(TensorMapFn fn, std::string label = {},
33 StageNode::OutputSpecFn out_fn = {});
35std::shared_ptr<simaai::neat::graph::Node> Map(SampleMapTransformFn fn, std::string label = {},
37 StageNode::OutputSpecFn out_fn = {});
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.1.