Skip to main content

SimaArgMax.h File

SimaAI ArgMax node wrapper. More...

Included Headers

#include "builder/Node.h" #include "builder/OutputSpec.h" #include <memory> #include <string> #include <vector>

Namespaces Index

namespacesimaai
namespaceneat
namespacenodes

Classes Index

structSimaArgMaxOptions
classSimaArgMax

Description

SimaAI ArgMax node wrapper.

File Listing

The file content with the documentation metadata removed is:

1
6#pragma once
7
8#include "builder/Node.h"
9#include "builder/OutputSpec.h"
10
11#include <memory>
12#include <string>
13#include <vector>
14
15namespace simaai::neat {
16
18 std::string config_path;
20 bool silent = true;
21 bool emit_signals = false;
22 bool transmit = false;
23};
24
25class SimaArgMax final : public Node, public OutputSpecProvider {
26public:
27 explicit SimaArgMax(SimaArgMaxOptions opt = {});
28
29 std::string kind() const override {
30 return "SimaArgMax";
31 }
32 NodeCapsBehavior caps_behavior() const override {
33 return NodeCapsBehavior::Static;
34 }
35 bool has_config_json() const override;
36 bool wire_input_names(const std::vector<std::string>& upstream_names,
37 const std::string& tag) override;
38 std::string backend_fragment(int node_index) const override;
39 std::vector<std::string> element_names(int node_index) const override;
40 OutputSpec output_spec(const OutputSpec& input) const override;
41
42 const SimaArgMaxOptions& options() const {
43 return opt_;
44 }
45
46private:
47 struct ConfigHolder;
48
50 std::shared_ptr<ConfigHolder> config_holder_;
51 std::string config_path_;
52};
53
54} // namespace simaai::neat
55
56namespace simaai::neat::nodes {
57std::shared_ptr<simaai::neat::Node> SimaArgMax(SimaArgMaxOptions opt = {});
58} // namespace simaai::neat::nodes

Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.1.