summaryrefslogtreecommitdiff
path: root/inference-engine/thirdparty/mkl-dnn/src/cpu/cpu_reorder.cpp
blob: fbba44e712deed4ac420cd6cc22900fb31b2fcad (plain)
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
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
/*******************************************************************************
* Copyright 2017-2018 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*     http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*******************************************************************************/

#include <assert.h>

#include "cpu_engine.hpp"
#include "cpu_memory.hpp"
#include "type_helpers.hpp"

#include "cpu/jit_uni_reorder.hpp"
#include "cpu/simple_reorder.hpp"
#include "cpu/wino_reorder.hpp"

namespace mkldnn {
namespace impl {
namespace cpu {

using rpd_create_f = mkldnn::impl::engine_t::reorder_primitive_desc_create_f;

namespace {
using namespace mkldnn::impl::data_type;
using namespace mkldnn::impl::memory_format;

static const rpd_create_f cpu_reorder_impl_list[] = {
    /* fp32 <-> fp32 */
    simple_reorder_t<f32, any, f32, any, fmt_order::any, spec::direct_copy>::pd_t::create,
    simple_reorder_t<f32, any, f32, any, fmt_order::any, spec::direct_copy_except_dim_0>::pd_t::create,
    jit_uni_reorder_create,
    /* fp32 flat <-> fp32 blocked with tail */
    simple_reorder_t<f32, any, f32, nChw16c, fmt_order::keep>::pd_t::create,
    simple_reorder_t<f32, any, f32, nChw16c, fmt_order::reverse>::pd_t::create,
    simple_reorder_t<f32, any, f32, nCdhw16c, fmt_order::keep>::pd_t::create,
    simple_reorder_t<f32, any, f32, nCdhw16c, fmt_order::reverse>::pd_t::create,
    simple_reorder_t<f32, any, f32, Oihw16o, fmt_order::keep>::pd_t::create,
    simple_reorder_t<f32, any, f32, Oihw16o, fmt_order::reverse>::pd_t::create,
    simple_reorder_t<f32, any, f32, Ohwi16o, fmt_order::keep>::pd_t::create,
    simple_reorder_t<f32, any, f32, Ohwi16o, fmt_order::reverse>::pd_t::create,
    simple_reorder_t<f32, any, f32, Oidhw16o, fmt_order::keep>::pd_t::create,
    simple_reorder_t<f32, any, f32, Oidhw16o, fmt_order::reverse>::pd_t::create,
    simple_reorder_t<f32, any, f32, Odhwi16o, fmt_order::keep>::pd_t::create,
    simple_reorder_t<f32, any, f32, Odhwi16o, fmt_order::reverse>::pd_t::create,
    simple_reorder_t<f32, any, f32, OIhw16o16i, fmt_order::keep>::pd_t::create,
    simple_reorder_t<f32, any, f32, OIhw16o16i, fmt_order::reverse>::pd_t::create,
    simple_reorder_t<f32, any, f32, OIhw16i16o, fmt_order::keep>::pd_t::create,
    simple_reorder_t<f32, any, f32, OIhw16i16o, fmt_order::reverse>::pd_t::create,
    simple_reorder_t<f32, any, f32, OIdhw16o16i, fmt_order::keep>::pd_t::create,
    simple_reorder_t<f32, any, f32, OIdhw16o16i, fmt_order::reverse>::pd_t::create,
    simple_reorder_t<f32, any, f32, OIdhw16i16o, fmt_order::keep>::pd_t::create,
    simple_reorder_t<f32, any, f32, OIdhw16i16o, fmt_order::reverse>::pd_t::create,
    simple_reorder_t<f32, any, f32, IOhw16o16i, fmt_order::keep>::pd_t::create,
    simple_reorder_t<f32, any, f32, IOhw16o16i, fmt_order::reverse>::pd_t::create,
    simple_reorder_t<f32, any, f32, gOihw16o, fmt_order::keep>::pd_t::create,
    simple_reorder_t<f32, any, f32, gOihw16o, fmt_order::reverse>::pd_t::create,
    simple_reorder_t<f32, any, f32, gOhwi16o, fmt_order::keep>::pd_t::create,
    simple_reorder_t<f32, any, f32, gOhwi16o, fmt_order::reverse>::pd_t::create,
    simple_reorder_t<f32, any, f32, gOidhw16o, fmt_order::keep>::pd_t::create,
    simple_reorder_t<f32, any, f32, gOidhw16o, fmt_order::reverse>::pd_t::create,
    simple_reorder_t<f32, any, f32, gOdhwi16o, fmt_order::keep>::pd_t::create,
    simple_reorder_t<f32, any, f32, gOdhwi16o, fmt_order::reverse>::pd_t::create,
    simple_reorder_t<f32, any, f32, gOIhw16o16i, fmt_order::keep>::pd_t::create,
    simple_reorder_t<f32, any, f32, gOIhw16o16i, fmt_order::reverse>::pd_t::create,
    simple_reorder_t<f32, any, f32, gOIhw16i16o, fmt_order::keep>::pd_t::create,
    simple_reorder_t<f32, any, f32, gOIhw16i16o, fmt_order::reverse>::pd_t::create,
    simple_reorder_t<f32, any, f32, gOIdhw16o16i, fmt_order::keep>::pd_t::create,
    simple_reorder_t<f32, any, f32, gOIdhw16o16i, fmt_order::reverse>::pd_t::create,
    simple_reorder_t<f32, any, f32, gOIdhw16i16o, fmt_order::keep>::pd_t::create,
    simple_reorder_t<f32, any, f32, gOIdhw16i16o, fmt_order::reverse>::pd_t::create,
    simple_reorder_t<f32, any, f32, gIOhw16o16i, fmt_order::keep>::pd_t::create,
    simple_reorder_t<f32, any, f32, gIOhw16o16i, fmt_order::reverse>::pd_t::create,
    simple_reorder_t<u8, nchw, f32, nChw8c, fmt_order::keep>::pd_t::create,
    simple_reorder_t<u8, nchw, f32, nChw16c, fmt_order::keep>::pd_t::create,
    simple_reorder_t<f32, nchw, f32, nChw8c, fmt_order::keep>::pd_t::create,
    simple_reorder_t<f32, nchw, f32, nChw8c, fmt_order::reverse>::pd_t::create,
    simple_reorder_t<f32, nchw, f32, nChw16c, fmt_order::keep>::pd_t::create,
    simple_reorder_t<f32, nchw, f32, nChw16c, fmt_order::reverse>::pd_t::create,
    simple_reorder_t<f32, nChw8c, f32, nChw16c, fmt_order::keep>::pd_t::create,
    simple_reorder_t<f32, nChw8c, f32, nChw16c, fmt_order::reverse>::pd_t::create,
    simple_reorder_t<f32, any, f32, any, fmt_order::any, spec::reference>::pd_t::create,
    /* reorder with quantization */
    wino_reorder_t<f32, goihw, s8, wino_fmt, fmt_order::keep>::pd_t::create,
    wino_reorder_t<f32, oihw, s8, wino_fmt, fmt_order::keep>::pd_t::create,
    simple_reorder_t<f32, any, s32, any, fmt_order::any, spec::direct_copy>::pd_t::create,
    simple_reorder_t<f32, any, s8, any, fmt_order::any, spec::direct_copy>::pd_t::create,
    simple_reorder_t<f32, any, u8, any, fmt_order::any, spec::direct_copy>::pd_t::create,
    simple_reorder_t<s32, any, f32, any, fmt_order::any, spec::direct_copy>::pd_t::create,
    simple_reorder_t<s32, any, s32, any, fmt_order::any, spec::direct_copy>::pd_t::create,
    simple_reorder_t<s32, any, s8, any, fmt_order::any, spec::direct_copy>::pd_t::create,
    simple_reorder_t<s32, any, u8, any, fmt_order::any, spec::direct_copy>::pd_t::create,
    simple_reorder_t<s8, any, f32, any, fmt_order::any, spec::direct_copy>::pd_t::create,
    simple_reorder_t<s8, any, s32, any, fmt_order::any, spec::direct_copy>::pd_t::create,
    simple_reorder_t<s8, any, s8, any, fmt_order::any, spec::direct_copy>::pd_t::create,
    simple_reorder_t<s8, any, u8, any, fmt_order::any, spec::direct_copy>::pd_t::create,
    simple_reorder_t<u8, any, f32, any, fmt_order::any, spec::direct_copy>::pd_t::create,
    simple_reorder_t<u8, any, s32, any, fmt_order::any, spec::direct_copy>::pd_t::create,
    simple_reorder_t<u8, any, s8, any, fmt_order::any, spec::direct_copy>::pd_t::create,
    simple_reorder_t<u8, any, u8, any, fmt_order::any, spec::direct_copy>::pd_t::create,
    /* nchw <-> nhwc */
    simple_reorder_t<f32, nchw, s32, nhwc, fmt_order::keep>::pd_t::create,
    simple_reorder_t<f32, nchw, s32, nhwc, fmt_order::reverse>::pd_t::create,
    simple_reorder_t<f32, nchw, s8, nhwc, fmt_order::keep>::pd_t::create,
    simple_reorder_t<f32, nchw, s8, nhwc, fmt_order::reverse>::pd_t::create,
    simple_reorder_t<f32, nchw, u8, nhwc, fmt_order::keep>::pd_t::create,
    simple_reorder_t<f32, nchw, u8, nhwc, fmt_order::reverse>::pd_t::create,
    simple_reorder_t<s32, nchw, f32, nhwc, fmt_order::keep>::pd_t::create,
    simple_reorder_t<s32, nchw, f32, nhwc, fmt_order::reverse>::pd_t::create,
    simple_reorder_t<s32, nchw, f32, nhwc, fmt_order::keep>::pd_t::create,
    simple_reorder_t<s32, nchw, s32, nhwc, fmt_order::reverse>::pd_t::create,
    simple_reorder_t<s32, nchw, s8, nhwc, fmt_order::keep>::pd_t::create,
    simple_reorder_t<s32, nchw, s8, nhwc, fmt_order::reverse>::pd_t::create,
    simple_reorder_t<s32, nchw, u8, nhwc, fmt_order::keep>::pd_t::create,
    simple_reorder_t<s32, nchw, u8, nhwc, fmt_order::reverse>::pd_t::create,
    simple_reorder_t<s8, nchw, f32, nhwc, fmt_order::keep>::pd_t::create,
    simple_reorder_t<s8, nchw, f32, nhwc, fmt_order::reverse>::pd_t::create,
    simple_reorder_t<s8, nchw, s32, nhwc, fmt_order::keep>::pd_t::create,
    simple_reorder_t<s8, nchw, s32, nhwc, fmt_order::reverse>::pd_t::create,
    simple_reorder_t<s8, nchw, s8, nhwc, fmt_order::keep>::pd_t::create,
    simple_reorder_t<s8, nchw, s8, nhwc, fmt_order::reverse>::pd_t::create,
    simple_reorder_t<s8, nchw, u8, nhwc, fmt_order::keep>::pd_t::create,
    simple_reorder_t<s8, nchw, u8, nhwc, fmt_order::reverse>::pd_t::create,
    simple_reorder_t<u8, nchw, f32, nhwc, fmt_order::keep>::pd_t::create,
    simple_reorder_t<u8, nchw, f32, nhwc, fmt_order::reverse>::pd_t::create,
    simple_reorder_t<u8, nchw, s32, nhwc, fmt_order::reverse>::pd_t::create,
    simple_reorder_t<u8, nchw, s32, nhwc, fmt_order::keep>::pd_t::create,
    simple_reorder_t<u8, nchw, s8, nhwc, fmt_order::keep>::pd_t::create,
    simple_reorder_t<u8, nchw, s8, nhwc, fmt_order::reverse>::pd_t::create,
    simple_reorder_t<u8, nchw, u8, nhwc, fmt_order::keep>::pd_t::create,
    simple_reorder_t<u8, nchw, u8, nhwc, fmt_order::reverse>::pd_t::create,
    /* nhwc <-> nChw8c */
    simple_reorder_t<s8, nhwc, f32, nChw8c, fmt_order::keep>::pd_t::create,
    simple_reorder_t<s8, nhwc, f32, nChw8c, fmt_order::reverse>::pd_t::create,
    simple_reorder_t<s8, nhwc, s32, nChw8c, fmt_order::keep>::pd_t::create,
    simple_reorder_t<s8, nhwc, s32, nChw8c, fmt_order::reverse>::pd_t::create,
    simple_reorder_t<s8, nhwc, s8, nChw8c, fmt_order::keep>::pd_t::create,
    simple_reorder_t<s8, nhwc, s8, nChw8c, fmt_order::reverse>::pd_t::create,
    simple_reorder_t<s8, nhwc, u8, nChw8c, fmt_order::keep>::pd_t::create,
    simple_reorder_t<s8, nhwc, u8, nChw8c, fmt_order::reverse>::pd_t::create,
    simple_reorder_t<f32, nhwc, s32, nChw8c, fmt_order::keep>::pd_t::create,
    simple_reorder_t<f32, nhwc, s32, nChw8c, fmt_order::reverse>::pd_t::create,
    simple_reorder_t<f32, nhwc, s8, nChw8c, fmt_order::keep>::pd_t::create,
    simple_reorder_t<f32, nhwc, s8, nChw8c, fmt_order::reverse>::pd_t::create,
    simple_reorder_t<f32, nhwc, u8, nChw8c, fmt_order::keep>::pd_t::create,
    simple_reorder_t<f32, nhwc, u8, nChw8c, fmt_order::reverse>::pd_t::create,
    simple_reorder_t<s32,  nhwc, s8, nChw8c, fmt_order::keep>::pd_t::create,
    simple_reorder_t<s32,  nhwc, s8, nChw8c, fmt_order::reverse>::pd_t::create,
    simple_reorder_t<s32, nhwc, s32, nChw8c, fmt_order::keep>::pd_t::create,
    simple_reorder_t<s32, nhwc, s32, nChw8c, fmt_order::reverse>::pd_t::create,
    simple_reorder_t<s32, nhwc, f32, nChw8c, fmt_order::keep>::pd_t::create,
    simple_reorder_t<s32, nhwc, f32, nChw8c, fmt_order::reverse>::pd_t::create,
    simple_reorder_t<s32, nhwc, u8, nChw8c, fmt_order::keep>::pd_t::create,
    simple_reorder_t<s32, nhwc, u8, nChw8c, fmt_order::reverse>::pd_t::create,
    simple_reorder_t<u8,  nhwc, s8, nChw8c, fmt_order::keep>::pd_t::create,
    simple_reorder_t<u8,  nhwc, s8, nChw8c, fmt_order::reverse>::pd_t::create,
    simple_reorder_t<u8,  nhwc, s32, nChw8c, fmt_order::keep>::pd_t::create,
    simple_reorder_t<u8,  nhwc, s32, nChw8c, fmt_order::reverse>::pd_t::create,
    simple_reorder_t<u8,  nhwc, u8, nChw8c, fmt_order::keep>::pd_t::create,
    simple_reorder_t<u8,  nhwc, u8, nChw8c, fmt_order::reverse>::pd_t::create,
    simple_reorder_t<u8,  nhwc, f32, nChw8c, fmt_order::keep>::pd_t::create,
    simple_reorder_t<u8,  nhwc, f32, nChw8c, fmt_order::reverse>::pd_t::create,
    /* nhwc <-> nChw16c */
    simple_reorder_t<s8, nhwc, f32, nChw16c, fmt_order::keep>::pd_t::create,
    simple_reorder_t<s8, nhwc, f32, nChw16c, fmt_order::reverse>::pd_t::create,
    simple_reorder_t<s8, nhwc, s32, nChw16c, fmt_order::keep>::pd_t::create,
    simple_reorder_t<s8, nhwc, s32, nChw16c, fmt_order::reverse>::pd_t::create,
    simple_reorder_t<s8, nhwc, s8, nChw16c, fmt_order::keep>::pd_t::create,
    simple_reorder_t<s8, nhwc, s8, nChw16c, fmt_order::reverse>::pd_t::create,
    simple_reorder_t<s8, nhwc, u8, nChw16c, fmt_order::keep>::pd_t::create,
    simple_reorder_t<s8, nhwc, u8, nChw16c, fmt_order::reverse>::pd_t::create,
    simple_reorder_t<f32, nhwc, s32, nChw16c, fmt_order::keep>::pd_t::create,
    simple_reorder_t<f32, nhwc, s32, nChw16c, fmt_order::reverse>::pd_t::create,
    simple_reorder_t<f32, nhwc, s8, nChw16c, fmt_order::keep>::pd_t::create,
    simple_reorder_t<f32, nhwc, s8, nChw16c, fmt_order::reverse>::pd_t::create,
    simple_reorder_t<f32, nhwc, u8, nChw16c, fmt_order::keep>::pd_t::create,
    simple_reorder_t<f32, nhwc, u8, nChw16c, fmt_order::reverse>::pd_t::create,
    simple_reorder_t<s32,  nhwc, s8, nChw16c, fmt_order::keep>::pd_t::create,
    simple_reorder_t<s32,  nhwc, s8, nChw16c, fmt_order::reverse>::pd_t::create,
    simple_reorder_t<s32, nhwc, s32, nChw16c, fmt_order::keep>::pd_t::create,
    simple_reorder_t<s32, nhwc, s32, nChw16c, fmt_order::reverse>::pd_t::create,
    simple_reorder_t<s32, nhwc, f32, nChw16c, fmt_order::keep>::pd_t::create,
    simple_reorder_t<s32, nhwc, f32, nChw16c, fmt_order::reverse>::pd_t::create,
    simple_reorder_t<s32, nhwc, f32, nChw16c, fmt_order::reverse>::pd_t::create,
    simple_reorder_t<s32, nhwc, u8, nChw16c, fmt_order::keep>::pd_t::create,
    simple_reorder_t<s32, nhwc, u8, nChw16c, fmt_order::reverse>::pd_t::create,
    simple_reorder_t<u8,  nhwc, s8, nChw16c, fmt_order::keep>::pd_t::create,
    simple_reorder_t<u8,  nhwc, s8, nChw16c, fmt_order::reverse>::pd_t::create,
    simple_reorder_t<u8,  nhwc, s32, nChw16c, fmt_order::keep>::pd_t::create,
    simple_reorder_t<u8,  nhwc, s32, nChw16c, fmt_order::reverse>::pd_t::create,
    simple_reorder_t<u8,  nhwc, u8, nChw16c, fmt_order::keep>::pd_t::create,
    simple_reorder_t<u8,  nhwc, u8, nChw16c, fmt_order::reverse>::pd_t::create,
    simple_reorder_t<u8,  nhwc, f32, nChw16c, fmt_order::keep>::pd_t::create,
    simple_reorder_t<u8,  nhwc, f32, nChw16c, fmt_order::reverse>::pd_t::create,
    /* s32 <-> fp32 */
    simple_reorder_t<f32, any, s32, any, fmt_order::any, spec::reference>::pd_t::create,
    simple_reorder_t<s32, any, f32, any, fmt_order::any, spec::reference>::pd_t::create,
    /* s16 <-> fp32 */
    simple_reorder_t<f32, any, s16, any, fmt_order::any, spec::reference>::pd_t::create,
    simple_reorder_t<s16, any, f32, any, fmt_order::any, spec::reference>::pd_t::create,
    /* s8 <-> fp32 */
    simple_reorder_t<f32, any, s8, any, fmt_order::any, spec::reference>::pd_t::create,
    simple_reorder_t<s8, any, f32, any, fmt_order::any, spec::reference>::pd_t::create,
    /* u8 <-> fp32 */
    simple_reorder_t<f32, any, u8, any, fmt_order::any, spec::reference>::pd_t::create,
    simple_reorder_t<u8, any, f32, any, fmt_order::any, spec::reference>::pd_t::create,
    /* int{8,32}  <-> int{8, 32} */
    simple_reorder_t<s8, any, s8, any, fmt_order::any, spec::direct_copy>::pd_t::create,
    simple_reorder_t<s8, any, s8, any, fmt_order::any, spec::direct_copy_except_dim_0>::pd_t::create,
    simple_reorder_t<u8, any, u8, any, fmt_order::any, spec::direct_copy>::pd_t::create,
    simple_reorder_t<u8, any, u8, any, fmt_order::any, spec::direct_copy_except_dim_0>::pd_t::create,
    simple_reorder_t<s8, any, u8, any, fmt_order::any, spec::direct_copy>::pd_t::create,
    simple_reorder_t<s8, any, u8, any, fmt_order::any, spec::direct_copy_except_dim_0>::pd_t::create,
    simple_reorder_t<u8, any, s8, any, fmt_order::any, spec::direct_copy>::pd_t::create,
    simple_reorder_t<u8, any, s8, any, fmt_order::any, spec::direct_copy_except_dim_0>::pd_t::create,
    simple_reorder_t<u8, any, s32, any, fmt_order::any, spec::direct_copy>::pd_t::create,
    simple_reorder_t<u8, any, s32, any, fmt_order::any, spec::direct_copy_except_dim_0>::pd_t::create,
    simple_reorder_t<s8, any, s32, any, fmt_order::any, spec::direct_copy>::pd_t::create,
    simple_reorder_t<s8, any, s32, any, fmt_order::any, spec::direct_copy_except_dim_0>::pd_t::create,
    simple_reorder_t<s32, any, u8, any, fmt_order::any, spec::direct_copy>::pd_t::create,
    simple_reorder_t<s32, any, u8, any, fmt_order::any, spec::direct_copy_except_dim_0>::pd_t::create,
    simple_reorder_t<s32, any, s8, any, fmt_order::any, spec::direct_copy>::pd_t::create,
    simple_reorder_t<s32, any, s8, any, fmt_order::any, spec::direct_copy_except_dim_0>::pd_t::create,
    simple_reorder_t<s32, any, s32, any, fmt_order::any, spec::direct_copy>::pd_t::create,
    simple_reorder_t<s32, any, s32, any, fmt_order::any, spec::direct_copy_except_dim_0>::pd_t::create,
    simple_reorder_t<s8, oihw, s8, OIhw4i16o4i, fmt_order::keep>::pd_t::create,
    simple_reorder_t<s8, oihw, s8, OIhw4i16o4i, fmt_order::reverse>::pd_t::create,
    simple_reorder_t<s8, goihw, s8, gOIhw4i16o4i, fmt_order::keep>::pd_t::create,
    simple_reorder_t<s8, goihw, s8, gOIhw4i16o4i, fmt_order::reverse>::pd_t::create,
    simple_reorder_t<u8, oihw, u8, OIhw4i16o4i, fmt_order::keep>::pd_t::create,
    simple_reorder_t<u8, oihw, u8, OIhw4i16o4i, fmt_order::reverse>::pd_t::create,
    simple_reorder_t<u8, goihw, u8, gOIhw4i16o4i, fmt_order::keep>::pd_t::create,
    simple_reorder_t<u8, goihw, u8, gOIhw4i16o4i, fmt_order::reverse>::pd_t::create,
    simple_reorder_t<u8, oihw, s8, OIhw4i16o4i, fmt_order::keep>::pd_t::create,
    simple_reorder_t<u8, oihw, s8, OIhw4i16o4i, fmt_order::reverse>::pd_t::create,
    simple_reorder_t<u8, goihw, s8, gOIhw4i16o4i, fmt_order::keep>::pd_t::create,
    simple_reorder_t<u8, goihw, s8, gOIhw4i16o4i, fmt_order::reverse>::pd_t::create,
    simple_reorder_t<s8, oihw, u8, OIhw4i16o4i, fmt_order::keep>::pd_t::create,
    simple_reorder_t<s8, oihw, u8, OIhw4i16o4i, fmt_order::reverse>::pd_t::create,
    simple_reorder_t<s8, goihw, u8, gOIhw4i16o4i, fmt_order::keep>::pd_t::create,
    simple_reorder_t<s8, goihw, u8, gOIhw4i16o4i, fmt_order::reverse>::pd_t::create,
    simple_reorder_t<u8, oihw, s32, OIhw4i16o4i, fmt_order::keep>::pd_t::create,
    simple_reorder_t<u8, oihw, s32, OIhw4i16o4i, fmt_order::reverse>::pd_t::create,
    simple_reorder_t<u8, goihw, s32, gOIhw4i16o4i, fmt_order::keep>::pd_t::create,
    simple_reorder_t<u8, goihw, s32, gOIhw4i16o4i, fmt_order::reverse>::pd_t::create,
    simple_reorder_t<s8, oihw, s32, OIhw4i16o4i, fmt_order::keep>::pd_t::create,
    simple_reorder_t<s8, oihw, s32, OIhw4i16o4i, fmt_order::reverse>::pd_t::create,
    simple_reorder_t<s8, goihw, s32, gOIhw4i16o4i, fmt_order::keep>::pd_t::create,
    simple_reorder_t<s8, goihw, s32, gOIhw4i16o4i, fmt_order::reverse>::pd_t::create,
    simple_reorder_t<s32, oihw, u8, OIhw4i16o4i, fmt_order::keep>::pd_t::create,
    simple_reorder_t<s32, oihw, u8, OIhw4i16o4i, fmt_order::reverse>::pd_t::create,
    simple_reorder_t<s32, goihw, u8, gOIhw4i16o4i, fmt_order::keep>::pd_t::create,
    simple_reorder_t<s32, goihw, u8, gOIhw4i16o4i, fmt_order::reverse>::pd_t::create,
    simple_reorder_t<s32, oihw, s8, OIhw4i16o4i, fmt_order::keep>::pd_t::create,
    simple_reorder_t<s32, oihw, s8, OIhw4i16o4i, fmt_order::reverse>::pd_t::create,
    simple_reorder_t<s32, goihw, s8, gOIhw4i16o4i, fmt_order::keep>::pd_t::create,
    simple_reorder_t<s32, goihw, s8, gOIhw4i16o4i, fmt_order::reverse>::pd_t::create,
    simple_reorder_t<s32, oihw, s32, OIhw4i16o4i, fmt_order::keep>::pd_t::create,
    simple_reorder_t<s32, oihw, s32, OIhw4i16o4i, fmt_order::reverse>::pd_t::create,
    simple_reorder_t<s32, goihw, s32, gOIhw4i16o4i, fmt_order::keep>::pd_t::create,
    simple_reorder_t<s32, goihw, s32, gOIhw4i16o4i, fmt_order::reverse>::pd_t::create,
    simple_reorder_t<u8, any, s8, any, fmt_order::any, spec::reference>::pd_t::create,
    simple_reorder_t<s8, any, u8, any, fmt_order::any, spec::reference>::pd_t::create,
    simple_reorder_t<u8, any, s32, any, fmt_order::any, spec::reference>::pd_t::create,
    simple_reorder_t<s32, any, u8, any, fmt_order::any, spec::reference>::pd_t::create,
    simple_reorder_t<s8, any, s32, any, fmt_order::any, spec::reference>::pd_t::create,
    simple_reorder_t<s32, any, s8, any, fmt_order::any, spec::reference>::pd_t::create,
    simple_reorder_t<s32, any, s32, any, fmt_order::any, spec::reference>::pd_t::create,
    simple_reorder_t<s8, any, s8, any, fmt_order::any, spec::reference>::pd_t::create,
    simple_reorder_t<u8, any, u8, any, fmt_order::any, spec::reference>::pd_t::create,
    /* s16 <-> s16 */
    simple_reorder_t<s16, any, s16, any, fmt_order::any, spec::direct_copy>::pd_t::create,
    simple_reorder_t<s16, any, s16, any, fmt_order::any, spec::direct_copy_except_dim_0>::pd_t::create,
    simple_reorder_t<s16, oihw, s16, OIhw8i16o2i, fmt_order::keep>::pd_t::create,
    simple_reorder_t<s16, oihw, s16, OIhw8i16o2i, fmt_order::reverse>::pd_t::create,
    simple_reorder_t<s16, goihw, s16, gOIhw8i16o2i, fmt_order::keep>::pd_t::create,
    simple_reorder_t<s16, goihw, s16, gOIhw8i16o2i, fmt_order::reverse>::pd_t::create,
    simple_reorder_t<s16, OIhw8i16o2i, s16, OIhw8o16i2o, fmt_order::keep>::pd_t::create,
    simple_reorder_t<s16, OIhw8i16o2i, s16, OIhw8o16i2o, fmt_order::reverse>::pd_t::create,
    simple_reorder_t<s16, gOIhw8i16o2i, s16, gOIhw8o16i2o, fmt_order::keep>::pd_t::create,
    simple_reorder_t<s16, gOIhw8i16o2i, s16, gOIhw8o16i2o, fmt_order::reverse>::pd_t::create,
    simple_reorder_t<s16, any, s16, any, fmt_order::any, spec::reference>::pd_t::create,
    /* eol */
    nullptr,
};
}

const rpd_create_f *cpu_engine_t::get_reorder_implementation_list() const {
    return cpu_reorder_impl_list;
}

}
}
}