// This file is auto-generated by wgsl-gen. Do not edit manually.
|
|
#ifndef INCLUDED_BY_WGSL_GEN_HEADER
|
#error "This file is expected to be included by wgsl-gen header. Do not include it directly."
|
#endif
|
|
//
|
// Template: math/matmul_gemv.wgsl.template
|
//
|
|
template <>
|
struct TemplateParameter<"math/matmul_gemv.wgsl.template"> {
|
using type = struct {
|
const ShaderVariableHelper* var_a;
|
const ShaderVariableHelper* var_b;
|
const ShaderVariableHelper* var_output;
|
};
|
};
|
|
template <>
|
Status ApplyTemplate<"math/matmul_gemv.wgsl.template">(ShaderHelper& shader_helper, TemplateParameter<"math/matmul_gemv.wgsl.template">::type params);
|
|
//
|
// Template: math/subgroup_matrix_gemm_8x16x16.wgsl.template
|
//
|
|
template <>
|
struct TemplateParameter<"math/subgroup_matrix_gemm_8x16x16.wgsl.template"> {
|
using type = struct {
|
int param_has_c;
|
int param_sg_mat_count_m;
|
int param_sg_mat_count_n;
|
int param_sg_mat_k;
|
int param_sg_mat_m;
|
int param_sg_mat_n;
|
int param_split_k;
|
int param_trans_a;
|
int param_trans_b;
|
const ShaderVariableHelper* var_output;
|
};
|
};
|
|
template <>
|
Status ApplyTemplate<"math/subgroup_matrix_gemm_8x16x16.wgsl.template">(ShaderHelper& shader_helper, TemplateParameter<"math/subgroup_matrix_gemm_8x16x16.wgsl.template">::type params);
|
|
//
|
// Template: math/subgroup_matrix_matmul_8x16x16.wgsl.template
|
//
|
|
template <>
|
struct TemplateParameter<"math/subgroup_matrix_matmul_8x16x16.wgsl.template"> {
|
using type = struct {
|
int param_sg_mat_count_m;
|
int param_sg_mat_count_n;
|
int param_sg_mat_k;
|
int param_sg_mat_m;
|
int param_sg_mat_n;
|
int param_split_k;
|
};
|
};
|
|
template <>
|
Status ApplyTemplate<"math/subgroup_matrix_matmul_8x16x16.wgsl.template">(ShaderHelper& shader_helper, TemplateParameter<"math/subgroup_matrix_matmul_8x16x16.wgsl.template">::type params);
|
|
//
|
// Template: math/subgroup_matrix_matmul_pad_b.wgsl.template
|
//
|
|
template <>
|
struct TemplateParameter<"math/subgroup_matrix_matmul_pad_b.wgsl.template"> {
|
using type = struct {
|
const ShaderVariableHelper* var_input_b;
|
const ShaderVariableHelper* var_output;
|
};
|
};
|
|
template <>
|
Status ApplyTemplate<"math/subgroup_matrix_matmul_pad_b.wgsl.template">(ShaderHelper& shader_helper, TemplateParameter<"math/subgroup_matrix_matmul_pad_b.wgsl.template">::type params);
|
|
//
|
// Template: nn/im2col_matmul.wgsl.template
|
//
|
|
template <>
|
struct TemplateParameter<"nn/im2col_matmul.wgsl.template"> {
|
using type = struct {
|
int param_activation_kind;
|
int param_has_bias;
|
int param_quick_gelu_unit_alpha;
|
int param_tile_m;
|
int param_tile_n;
|
int param_use_subgroup;
|
int param_vec_size;
|
const ShaderVariableHelper* var_output;
|
const ShaderVariableHelper* var_src;
|
const ShaderVariableHelper* var_weight;
|
};
|
};
|
|
template <>
|
Status ApplyTemplate<"nn/im2col_matmul.wgsl.template">(ShaderHelper& shader_helper, TemplateParameter<"nn/im2col_matmul.wgsl.template">::type params);
|
|
//
|
// Template: tensor/oihw_to_ohwi.wgsl.template
|
//
|
|
template <>
|
struct TemplateParameter<"tensor/oihw_to_ohwi.wgsl.template"> {
|
using type = struct {
|
const ShaderVariableHelper* var_output;
|
const ShaderVariableHelper* var_src;
|
};
|
};
|
|
template <>
|
Status ApplyTemplate<"tensor/oihw_to_ohwi.wgsl.template">(ShaderHelper& shader_helper, TemplateParameter<"tensor/oihw_to_ohwi.wgsl.template">::type params);
|
|
//
|
// Template: tensor/pad.wgsl.template
|
//
|
|
template <>
|
struct TemplateParameter<"tensor/pad.wgsl.template"> {
|
using type = struct {
|
int param_dim_value_zero;
|
int param_is_float16;
|
int param_pad_mode;
|
const ShaderVariableHelper* var_output;
|
};
|
};
|
|
template <>
|
Status ApplyTemplate<"tensor/pad.wgsl.template">(ShaderHelper& shader_helper, TemplateParameter<"tensor/pad.wgsl.template">::type params);
|
|
//
|
// Template: nn/conv_transpose3d.wgsl.template
|
//
|
|
template <>
|
struct TemplateParameter<"nn/conv_transpose3d.wgsl.template"> {
|
using type = struct {
|
int param_components;
|
int param_has_bias;
|
int param_is_channels_last;
|
int param_is_prepacked;
|
const ShaderVariableHelper* var_bias;
|
const ShaderVariableHelper* var_output;
|
const ShaderVariableHelper* var_w;
|
const ShaderVariableHelper* var_x;
|
};
|
};
|
|
template <>
|
Status ApplyTemplate<"nn/conv_transpose3d.wgsl.template">(ShaderHelper& shader_helper, TemplateParameter<"nn/conv_transpose3d.wgsl.template">::type params);
|