22template <
typename TT,
int B,
int INP_H,
int INP_W,
int INP_W_PAD,
int H0,
int H1,
int W0,
int W1>
25 static constexpr int OUT_H = INP_H + H0 + H1;
26 static constexpr int OUT_W = INP_W + W0 + W1;
32 ): pad_value(pad_value) {};
36 output_stream<TT>* out
39 static void registerKernelClass() {
40 static_assert((std::is_same<TT, float>::value));
41 REGISTER_FUNCTION(Pad2DStreamFloat::filter);
50template <
typename TT,
int B,
int INP_H,
int INP_W,
int INP_W_PAD,
int H0,
int H1,
int W0,
int W1>
53 static constexpr int OUT_H = INP_H + H0 + H1;
54 static constexpr int OUT_W = INP_W + W0 + W1;
60 ): pad_value(pad_value) {};
64 output_stream<TT>* out
67 static void registerKernelClass() {
68 static_assert((std::is_same<TT, int8_t>::value) || (std::is_same<TT, uint8_t>::value));
69 static_assert((B*OUT_H*OUT_W) % 4 == 0);
70 static_assert(INP_W_PAD % 16 == 0);
71 REGISTER_FUNCTION(Pad2DStreamInt8::filter);
81template <
typename TT,
int B,
int INP_H,
int INP_W,
int INP_W_PAD,
int H0,
int H1,
int W0,
int W1>
84 static constexpr int OUT_H = INP_H + H0 + H1;
85 static constexpr int OUT_W = INP_W + W0 + W1;
91 ): pad_value(pad_value) {};
95 output_window<TT>* out
98 static void registerKernelClass() {
99 REGISTER_FUNCTION(Pad2DWindowScalar::filter);
108template <
typename TT,
int B,
int INP_H,
int INP_W,
int INP_W_PAD,
int H0,
int H1,
int W0,
int W1>
111 static constexpr int OUT_H = INP_H + H0 + H1;
112 static constexpr int OUT_W = INP_W + W0 + W1;
118 ): pad_value(pad_value) {};
121 input_stream<TT>* in,
122 output_window<TT>* out
125 static void registerKernelClass() {
126 static_assert((std::is_same<TT, int8_t>::value) || (std::is_same<TT, uint8_t>::value));
127 static_assert(INP_W_PAD % 16 == 0);
128 REGISTER_FUNCTION(Pad2DStream2WindowInt8::filter);
Vector implementation for Pad2D using input stream and output window Pad2DStream2WindowInt8<a,...
Definition pad.h:109
Vector implementation for Float Pad2D Pad2DStreamFloat<f,2,30,30,32,1,1,1,1> total = 2304.
Definition pad.h:23
Vector implementation for Int8 Pad2D Pad2DStreamInt8<a,2,30,30,32,1,1,1,1> total = 1885 for v64int16.
Definition pad.h:51
Vector implementation for Pad2D using windows Pad2DWindowScalar<f,2,30,30,32,1,1,1,...
Definition pad.h:82