Detess.h File
Detess Node — CVU kernel that untessellates an MLA-layout tensor to natural HWC/CHW. More...
Included Headers
#include "builder/Node.h"
#include "builder/NodeContractConfigurable.h"
#include "builder/NodeContractProvider.h"
#include "builder/OutputSpec.h"
#include <nlohmann/json.hpp>
#include <memory>
#include <optional>
#include <string>
#include <vector>
Namespaces Index
| namespace | simaai |
| namespace | neat |
| namespace | nodes |
Classes Index
| struct | DetessOptions |
| class | Detess |
|
CVU kernel Node that detessellates MLA-layout tensors back to natural HWC/CHW order. More... | |
Description
Detess Node — CVU kernel that untessellates an MLA-layout tensor to natural HWC/CHW.
Pure layout shuffle — undoes the tile-and-stripe arrangement that the MLA emits, returning tensors in the natural memory order downstream consumers expect. Inserted by the route planner immediately after MLA stages whenever the next consumer is a host-style layout reader.
- See Also
"The dtype contract" page in /concepts/dtype_contract
File Listing
The file content with the documentation metadata removed is:
26namespace simaai::neat {
31namespace simaai::neat {
38struct DetessOptions {
40 DetessOptions() = default;
42 explicit DetessOptions(const simaai::neat::Model& model);
44 std::string config_path;
45 std::string config_dir;
46 bool keep_config = false;
47 bool no_json_path = false;
50 std::string upstream_name;
51 std::string element_name;
54 int num_buffers = 0;
55 int num_buffers_model = 0;
56 bool num_buffers_locked = false;
76 explicit Detess(DetessOptions opt = {});
84 NodeCapsBehavior caps_behavior() const override {
88 std::string backend_fragment(int node_index) const override;
90 std::vector<std::string> element_names(int node_index) const override;
92 OutputSpec output_spec(const OutputSpec& input) const override;
94 NodeContractDefinition contract_definition() const override;
96 bool compile_node_contract(const ContractCompileInput& input, CompiledNodeContract* out,
99 void apply_compiled_contract(const CompiledNodeContract& contract, std::string* err) override;
102 const nlohmann::json* config_json() const;
105 const DetessOptions& options() const {
109 const std::string& config_path() const {
118 DetessOptions opt_;
125namespace simaai::neat::nodes {
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.