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 {
24using SampleMapFn = std::function<void(Sample&)>;
26using TensorMapFn = std::function<void(Sample&, simaai::neat::Tensor&)>;
28using SampleMapTransformFn = std::function<Sample(Sample)>;
39std::shared_ptr<simaai::neat::graph::Node> Map(SampleMapFn fn, std::string label = {},
41 StageNode::OutputSpecFn out_fn = {});
52std::shared_ptr<simaai::neat::graph::Node> TensorMap(TensorMapFn fn, std::string label = {},
54 StageNode::OutputSpecFn out_fn = {});
65std::shared_ptr<simaai::neat::graph::Node> Map(SampleMapTransformFn fn, std::string label = {},
67 StageNode::OutputSpecFn out_fn = {});
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.