TinyChatEngine
Loading...
Searching...
No Matches
LayerNorm.h
1#include "common.h"
2
4 Matrix3D<float> weight;
6};
7
8class 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
19void load_LayerNorm(LayerNorm &op, std::string prefix);
Definition LayerNorm.h:8
Definition common.h:34
Definition LayerNorm.h:3