-
Notifications
You must be signed in to change notification settings - Fork 141
/
index.ts
149 lines (145 loc) · 4.29 KB
/
index.ts
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
/**
* @file op文件
* @author yueshuangyan
*/
import conv2d from './shader/conv2d';
import conv2d_packing from './shader/conv2d_packing';
import conv2d_transpose from './shader/conv2d_transpose';
import conv2d_depthwise from './shader/conv2d_depthwise';
import depthwise_conv2d from './shader/depthwise_conv2d';
import conv2d_elementwise_add from './shader/conv2d_elementwise_add';
import pool2d from './shader/pool2d';
import pool2d_avg_adaptive from './shader/pool2d_avg_adaptive';
import pool2d_max from './shader/pool2d_max';
import pool2d_winograd from './shader/pool2d_winograd';
import elementwise_add from './shader/elementwise_add';
import mul from './shader/mul';
import matmul from './shader/matmul';
import matmul_v2 from './shader/matmul_v2';
import fc from './shader/fc';
import dropout from './shader/dropout';
import concat from './shader/concat';
import concat_mul from './shader/concat_mul';
import split from './shader/split';
import batchnorm from './shader/batchnorm';
import reshape2 from './shader/reshape2';
import bilinear_interp from './shader/bilinear_interp';
import bilinear_interp_v2 from './shader/bilinear_interp_v2';
import transpose2 from './shader/transpose2';
import softmax from './shader/softmax';
import dynamic from './shader/dynamic';
import elementwise_mul from './shader/elementwise_mul';
import elementwise_div from './shader/elementwise_div';
import arg_max from './shader/arg_max';
import arg_min from './shader/arg_min';
import unsqueeze2 from './shader/unsqueeze2';
import flatten_contiguous_range from './shader/flatten_contiguous_range';
import greater_than from './shader/greater_than';
import reduce_sum from './shader/reduce_sum';
import where from './shader/where';
import connect from './shader/connect';
import squeeze2 from './shader/squeeze2';
import pad3d from './shader/pad3d';
import reduce_mean from './shader/reduce_mean';
import shuffle_channel from './shader/shuffle_channel';
import hard_swish from './shader/hard_swish';
import nearest_interp from './shader/nearest_interp';
import nearest_interp_v2 from './shader/nearest_interp_v2';
import elementwise_pow from './shader/elementwise_pow';
import elementwise_sub from './shader/elementwise_sub';
import cast from './shader/cast';
import fill_constant_batch_size_like from './shader/fill_constant_batch_size_like';
import rnn_matmul from './shader/rnn/rnn_matmul';
import rnn_cell from './shader/rnn/rnn_cell';
import rnn_hidden from './shader/rnn/rnn_hidden';
import rnn_origin from './shader/rnn/rnn_origin';
import pool2d_avg from './shader/pool2d_avg';
import density_prior_box from './shader/density_prior_box';
import box_coder from './shader/box_coder';
import prior_box from './shader/prior_box';
import stack from './shader/stack';
import slice from './shader/slice';
import {
imgFeed, pack_out, nhwc_2_nchw, unpacked_2_packed,
packed_2_unpacked, feedPost
} from './shader/custom';
const ops = {
arg_max,
arg_min,
conv2d,
conv2d_packing,
conv2d_transpose,
depthwise_conv2d,
conv2d_depthwise,
conv2d_elementwise_add,
pool2d,
pool2d_max,
pool2d_winograd,
elementwise_add,
elementwise_mul,
elementwise_div,
elementwise_pow,
elementwise_sub,
mul,
matmul,
matmul_v2,
fc,
dropout,
concat,
concat_mul,
split,
softmax,
batchnorm,
reshape: reshape2,
reshape2,
bilinear_interp,
transpose2,
unpacked_2_packed,
packed_2_unpacked,
unsqueeze2,
flatten_contiguous_range,
flatten2: reshape2,
greater_than,
reduce_sum,
where,
connect,
reduce_mean,
hard_swish,
nearest_interp,
nearest_interp_v2,
cast,
fill_constant_batch_size_like,
rnn_matmul,
rnn_hidden,
rnn_cell,
rnn_origin,
pool2d_avg,
pool2d_avg_adaptive,
prelu: dynamic('prelu'),
relu6: dynamic('relu6'),
leakyRelu: dynamic('leakyRelu'),
scale: dynamic('scale'),
sigmoid: dynamic('sigmoid'),
relu: dynamic('relu'),
hard_sigmoid: dynamic('hard_sigmoid'),
pow: dynamic('pow'),
sqrt: dynamic('sqrt'),
tanh: dynamic('tanh'),
exp: dynamic('exp'),
squeeze2,
pad3d,
bilinear_interp_v2,
shuffle_channel,
pack_out,
nhwc_2_nchw,
feedPost,
imgFeed,
box_coder,
density_prior_box,
prior_box,
stack,
slice
};
export {
ops
};