TinyChatEngine
Loading...
Searching...
No Matches
Conv2D.h
1#include "common.h"
2#include <limits>
3
5 Matrix4D<float> weight;
7 int stride_width = 1;
8 int stride_height = 1;
9 int dilation_width_factor = 1;
10 int dilation_height_factor = 1;
11 int padding_width = 0;
12 int padding_height = 0;
13 float float_activation_min = -std::numeric_limits<float>::max();
14 float float_activation_max = std::numeric_limits<float>::max();
15};
16
17class Conv2D {
18 public:
19 Conv2D(Conv2D_params params_) : params(params_){};
20 Conv2D(){};
21 void forward(const Matrix3D<float> &input, Matrix3D<float> &output);
22 struct Conv2D_params params;
23 bool has_bias = false;
24
25 private:
26 std::string profile_name = "Conv2D";
27};
28
29void load_Conv2D(Conv2D &op, std::string prefix);
Definition Conv2D.h:17
Definition common.h:34
Definition common.h:129
Definition Conv2D.h:4