-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconv_direct_kernel.hpp
More file actions
68 lines (62 loc) · 2.97 KB
/
Copy pathconv_direct_kernel.hpp
File metadata and controls
68 lines (62 loc) · 2.97 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#pragma once
#include "kernel_activation.hpp"
#include <cstdint>
bool ConvDirectForward3x3S1P0(const float* in,
float* weights,
const float* bias,
float* out,
uint32_t in_w,
uint32_t in_ch,
uint32_t out_h,
uint32_t out_w,
uint32_t out_ch,
int out_channels,
NetkitKernelActivation fuse_activation);
bool ConvDirectForwardNoPad(const float* in,
float* weights,
const float* bias,
float* out,
uint32_t in_w,
uint32_t in_ch,
uint32_t out_h,
uint32_t out_w,
uint32_t out_ch,
int kernel_size,
int stride,
int out_channels,
NetkitKernelActivation fuse_activation);
bool ConvDirectForwardPadded(const float* in,
float* weights,
const float* bias,
float* out,
uint32_t in_h,
uint32_t in_w,
uint32_t in_ch,
uint32_t out_h,
uint32_t out_w,
uint32_t out_ch,
int kernel_size,
int stride,
int pad_h,
int pad_w,
int out_channels,
NetkitKernelActivation fuse_activation);
bool ConvDirectTryInputStationaryForward(const float* in,
const float* weights_hwio,
const float* bias,
float* out,
uint32_t in_h,
uint32_t in_w,
uint32_t in_ch,
uint32_t out_h,
uint32_t out_w,
uint32_t out_ch,
uint32_t kernel_h,
uint32_t kernel_w,
int stride,
int pad_h,
int pad_w,
int pad_h_end,
int pad_w_end,
int out_channels,
NetkitKernelActivation fuse_activation);