Skip to main content

Detess Class

CVU kernel Node that detessellates MLA-layout tensors back to natural HWC/CHW order. More...

Declaration

class simaai::neat::Detess { ... }

Included Headers

#include <Detess.h>

Base classes

classNode
classOutputSpecProvider
classNodeContractProvider
classNodeContractConfigurable

Public Constructors Index

Detess (DetessOptions opt={})

Construct with optional DetessOptions. More...

Public Member Functions Index

std::stringkind () const override

Type label for this Node kind. More...

NodeCapsBehaviorcaps_behavior () const override

Whether the Node negotiates static or dynamic caps. More...

std::stringbackend_fragment (int node_index) const override

GStreamer fragment this Node emits. More...

std::vector< std::string >element_names (int node_index) const override

Deterministic element names this Node will create. More...

OutputSpecoutput_spec (const OutputSpec &input) const override

Negotiated downstream caps produced by this Node. More...

NodeContractDefinitioncontract_definition () const override

Structural contract definition for this Node. More...

boolcompile_node_contract (const ContractCompileInput &input, CompiledNodeContract *out, std::string *err) const override

Compile this Node's contract from the given input. More...

voidapply_compiled_contract (const CompiledNodeContract &contract, std::string *err) override

Apply a compiled contract back into this Node. More...

const nlohmann::json *config_json () const

Resolved kernel config JSON, or null if no config was supplied/loaded. More...

const DetessOptions &options () const

Inspect the Node's options. More...

const std::string &config_path () const

Path to the kernel config JSON, if one was loaded from disk. More...

Private Member Attributes Index

DetessOptionsopt_
std::shared_ptr< ConfigHolder >config_holder_
std::stringconfig_path_

Description

CVU kernel Node that detessellates MLA-layout tensors back to natural HWC/CHW order.

Inserted by the route planner whenever an MLA stage feeds a host-style layout consumer and the dtype path does not justify a fused DetessCast/DetessDequant. Application code rarely adds this directly.

See Also

"The dtype contract" page in /concepts/dtype_contract

Definition at line 70 of file Detess.h.

Public Constructors

Detess()

simaai::neat::Detess::Detess (DetessOptions opt={})
explicit

Construct with optional DetessOptions.

Definition at line 76 of file Detess.h.

Public Member Functions

apply_compiled_contract()

void simaai::neat::Detess::apply_compiled_contract (const CompiledNodeContract & contract, std::string * err)

Apply a compiled contract back into this Node.

Definition at line 99 of file Detess.h.

backend_fragment()

std::string simaai::neat::Detess::backend_fragment (int node_index)

GStreamer fragment this Node emits.

Definition at line 88 of file Detess.h.

caps_behavior()

NodeCapsBehavior simaai::neat::Detess::caps_behavior ()
inline

Whether the Node negotiates static or dynamic caps.

Definition at line 84 of file Detess.h.

84 NodeCapsBehavior caps_behavior() const override {
85 return NodeCapsBehavior::Static;
86 }

compile_node_contract()

bool simaai::neat::Detess::compile_node_contract (const ContractCompileInput & input, CompiledNodeContract * out, std::string * err)

Compile this Node's contract from the given input.

Definition at line 96 of file Detess.h.

config_json()

const nlohmann::json * simaai::neat::Detess::config_json ()

Resolved kernel config JSON, or null if no config was supplied/loaded.

Definition at line 102 of file Detess.h.

config_path()

const std::string & simaai::neat::Detess::config_path ()
inline

Path to the kernel config JSON, if one was loaded from disk.

Definition at line 109 of file Detess.h.

109 const std::string& config_path() const {
110 return config_path_;
111 }

contract_definition()

NodeContractDefinition simaai::neat::Detess::contract_definition ()

Structural contract definition for this Node.

Definition at line 94 of file Detess.h.

element_names()

std::vector< std::string > simaai::neat::Detess::element_names (int node_index)

Deterministic element names this Node will create.

Definition at line 90 of file Detess.h.

kind()

std::string simaai::neat::Detess::kind ()
inline

Type label for this Node kind.

Definition at line 80 of file Detess.h.

80 std::string kind() const override {
81 return "Detess";
82 }

options()

const DetessOptions & simaai::neat::Detess::options ()
inline

Inspect the Node's options.

Definition at line 105 of file Detess.h.

105 const DetessOptions& options() const {
106 return opt_;
107 }

output_spec()

OutputSpec simaai::neat::Detess::output_spec (const OutputSpec & input)

Negotiated downstream caps produced by this Node.

Definition at line 92 of file Detess.h.

Private Member Attributes

config_holder_

std::shared_ptr<ConfigHolder> simaai::neat::Detess::config_holder_

Definition at line 119 of file Detess.h.

119 std::shared_ptr<ConfigHolder> config_holder_;

config_path_

std::string simaai::neat::Detess::config_path_

Definition at line 120 of file Detess.h.

120 std::string config_path_;

opt_

DetessOptions simaai::neat::Detess::opt_

Definition at line 118 of file Detess.h.

118 DetessOptions opt_;

The documentation for this class was generated from the following file:


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.