载入中...
搜索中...
未找到
eve::tensor::glsl_detail::ChainContext结构体 参考

Public 成员函数

std::string operand (int nodeId)
 
std::string emit (int nodeId)
 

Public 属性

const Graph & graph
 
const FusedGroup & group
 
const std::vector< std::string > & indexExprs
 
std::string rootVar
 
std::ostringstream & os
 
int temp = 0
 
std::string biasIndexExpr
 
std::vector< std::string > vars
 

详细描述

Emit the elementwise chain expression. rootVar is the value entering the first chain node (e.g. the matmul accumulator). Input fetches reference buffers by inputBind + "[" + indexExpr + "]". Returns the final variable.

在文件 KernelGen.cpp 第 119 行定义.

成员函数说明

◆ emit()

◆ operand()

std::string eve::tensor::glsl_detail::ChainContext::operand ( int  nodeId)
inline

在文件 KernelGen.cpp 第 128 行定义.

引用了 biasIndexExpr, eve::tensor::FusedGroup::biasNode, group, idx, indexExprs, eve::tensor::FusedGroup::inputs, nodeId , 以及 vars.

被这些函数引用 emit().

类成员变量说明

◆ biasIndexExpr

std::string eve::tensor::glsl_detail::ChainContext::biasIndexExpr

在文件 KernelGen.cpp 第 126 行定义.

被这些函数引用 operand().

◆ graph

const Graph& eve::tensor::glsl_detail::ChainContext::graph

在文件 KernelGen.cpp 第 120 行定义.

被这些函数引用 emit().

◆ group

const FusedGroup& eve::tensor::glsl_detail::ChainContext::group

在文件 KernelGen.cpp 第 121 行定义.

被这些函数引用 emit() , 以及 operand().

◆ indexExprs

const std::vector<std::string>& eve::tensor::glsl_detail::ChainContext::indexExprs

在文件 KernelGen.cpp 第 122 行定义.

被这些函数引用 operand().

◆ os

std::ostringstream& eve::tensor::glsl_detail::ChainContext::os

在文件 KernelGen.cpp 第 124 行定义.

被这些函数引用 emit().

◆ rootVar

std::string eve::tensor::glsl_detail::ChainContext::rootVar

在文件 KernelGen.cpp 第 123 行定义.

被这些函数引用 emit().

◆ temp

int eve::tensor::glsl_detail::ChainContext::temp = 0

在文件 KernelGen.cpp 第 125 行定义.

被这些函数引用 emit().

◆ vars

std::vector<std::string> eve::tensor::glsl_detail::ChainContext::vars

在文件 KernelGen.cpp 第 139 行定义.

被这些函数引用 emit() , 以及 operand().


该结构体的文档由以下文件生成: