SimaArgMax.h File
SimaArgMax Node — postprocess argmax over a tensor (classification). More...
Included Headers
#include "builder/Node.h"
#include "builder/OutputSpec.h"
#include <memory>
#include <string>
#include <vector>
Namespaces Index
| namespace | simaai |
| namespace | neat |
| namespace | nodes |
Classes Index
| struct | SimaArgMaxOptions |
|
Construction options for a SimaArgMax Node. More... | |
| class | SimaArgMax |
|
EV74 postprocess Node that emits the top-class index from a classification tensor. More... | |
Description
SimaArgMax Node — postprocess argmax over a tensor (classification).
Runs on the EV74. Reads a classification tensor (after dequant/cast) and emits the top class index per sample. Place after Detess/DetessDequant/DetessCast at the tail of a classification pipeline.
File Listing
The file content with the documentation metadata removed is:
19namespace simaai::neat {
26struct SimaArgMaxOptions {
27 std::string config_path;
28 int sima_allocator_type = 2;
30 bool emit_signals = false;
39class SimaArgMax final : public Node, public OutputSpecProvider {
42 explicit SimaArgMax(SimaArgMaxOptions opt = {});
49 NodeCapsBehavior caps_behavior() const override {
53 bool has_config_json() const override;
55 bool wire_input_names(const std::vector<std::string>& upstream_names,
58 std::string backend_fragment(int node_index) const override;
60 std::vector<std::string> element_names(int node_index) const override;
62 OutputSpec output_spec(const OutputSpec& input) const override;
65 const SimaArgMaxOptions& options() const {
72 SimaArgMaxOptions opt_;
79namespace simaai::neat::nodes {
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.