Tess.h File
Tess Node — CVU kernel that tessellates a tensor into MLA tile geometry. More...
Included Headers
#include "builder/NodeContractConfigurable.h"
#include "builder/NodeContractProvider.h"
#include "builder/Node.h"
#include <nlohmann/json.hpp>
#include <memory>
#include <optional>
#include <string>
#include <vector>
Namespaces Index
| namespace | simaai |
| namespace | neat |
| namespace | nodes |
Classes Index
| struct | TessOptions |
| class | Tess |
|
CVU kernel Node that tessellates a natural-layout tensor into MLA tile geometry. More... | |
Description
Tess Node — CVU kernel that tessellates a tensor into MLA tile geometry.
Pure layout shuffle — rearranges a natural HWC/CHW tensor into the tile-and-stripe arrangement the MLA expects on input. Inserted by the route planner just before MLA stages whenever the upstream stage emits natural layout (i.e. MLA-side tess is not folded into the compiled MLA kernel).
- See Also
"The dtype contract" page in /concepts/dtype_contract
File Listing
The file content with the documentation metadata removed is:
29namespace simaai::neat {
38struct TessOptions {
40 TessOptions() = default;
42 explicit TessOptions(const simaai::neat::Model& model);
44 std::string config_path;
47 std::string element_name;
50 int num_buffers = 0;
51 int num_buffers_model = 0;
52 bool num_buffers_locked = false;
72 explicit Tess(TessOptions opt = {});
80 NodeCapsBehavior caps_behavior() const override {
84 NodeContractDefinition contract_definition() const override;
86 bool compile_node_contract(const ContractCompileInput& input, CompiledNodeContract* out,
89 void apply_compiled_contract(const CompiledNodeContract& contract, std::string* err) override;
91 std::string backend_fragment(int node_index) const override;
93 std::vector<std::string> element_names(int node_index) const override;
96 const nlohmann::json* config_json() const;
99 const TessOptions& options() const {
103 const std::string& config_path() const {
112 TessOptions opt_;
119namespace simaai::neat::nodes {
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.