2 // Copyright (c) 2016 Intel Corporation
4 // Licensed under the Apache License, Version 2.0 (the "License");
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
8 // http://www.apache.org/licenses/LICENSE-2.0
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an "AS IS" BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
17 #include "reorder_kernel_selector.h"
18 #include "reorder_kernel.h"
19 #include "reorder_kernel_fast_b1.h"
20 #include "reorder_from_winograd_2x3_kernel.h"
21 #include "reorder_to_winograd_2x3_kernel.h"
22 #include "reorder_kernel_to_yxfb_batched.h"
23 #include "reorder_kernel_byxf_f32_to_byx8_f4_i8.h"
25 namespace kernel_selector {
27 reorder_kernel_selector::reorder_kernel_selector()
29 Attach<ReorderKernelRef>();
30 Attach<ReorderKernelFastBatch1>();
31 Attach<ReorderFromWinograd2x3Kernel>();
32 Attach<ReorderToWinograd2x3Kernel>();
33 Attach<ReorderKernel_to_yxfb_batched>();
34 //Attach<reorder_kernel_byxf_f32_to_byx8_f4_i8>(); // Slower than default!
37 KernelsData reorder_kernel_selector::GetBestKernels(const Params& params, const optional_params& options) const
39 return GetNaiveBestKernel(params, options, KernelType::REORDER);