TinyChatEngine
Loading...
Searching...
No Matches
llm
include
ops
LayerNorm.h
1
#include "common.h"
2
3
struct
LayerNorm_params
{
4
Matrix3D<float>
weight;
5
Matrix3D<float>
bias;
6
};
7
8
class
LayerNorm
{
9
public
:
10
LayerNorm
(
LayerNorm_params
params_) : params(params_){};
11
LayerNorm
(){};
12
void
forward(
const
Matrix3D<float>
&x,
Matrix3D<float>
&output);
13
struct
LayerNorm_params
params;
14
15
private
:
16
std::string profile_name =
"LayerNorm"
;
17
};
18
19
void
load_LayerNorm(
LayerNorm
&op, std::string prefix);
LayerNorm
Definition
LayerNorm.h:8
Matrix3D
Definition
common.h:34
LayerNorm_params
Definition
LayerNorm.h:3
Generated by
1.11.0