2 // Copyright (c) 2019 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 "fully_connected_kernel_selector.h"
18 #include "fully_connected_kernel_bfyx_ref.h"
19 #include "fully_connected_kernel_bf_io_gemm.h"
20 #include "fully_connected_kernel_bs_f_bsv16_b1.h"
21 #include "fully_connected_kernel_bs_f_bsv16_af8.h"
22 #include "fully_connected_kernel_bs_f_bsv8_af8.h"
23 #include "fully_connected_kernel_yxfb_ref.h"
24 #include "fully_connected_kernel_fb_oi_ref.h"
25 #include "fully_connected_kernel_fb_io_ref.h"
26 #include "fully_connected_kernel_bf_io_ref.h"
27 #include "fully_connected_kernel_fb_oi_b8_ref.h"
28 #include "fully_connected_kernel_fb_io_b8_f8.h"
29 #include "fully_connected_kernel_fb_io_block.h"
30 #include "fully_connected_kernel_bf_io_input_spatial.h"
31 #include "fully_connected_kernel_image_tutorial.h"
32 #include "fully_connected_kernel_MMAD.h"
33 #include "fully_connected_kernel_mmad_batched.h"
34 #include "fully_connected_kernel_imad.h"
36 namespace kernel_selector {
38 fully_connected_kernel_selector::fully_connected_kernel_selector()
40 Attach<FullyConnected_bfyx_Ref>();
41 Attach<FullyConnected_bf_io_GEMM>();
42 Attach<FullyConnected_bs_f_bsv16_b1>();
43 Attach<FullyConnected_bs_f_bsv16_af8>();
44 Attach<FullyConnected_bs_f_bsv8_af8>();
45 Attach<FullyConnected_yxfb_ref>();
46 Attach<FullyConnected_fb_oi_ref>();
47 Attach<FullyConnected_fb_io_ref>();
48 Attach<FullyConnected_bf_io_ref>();
49 Attach<FullyConnected_fb_oi_b8_ref>();
50 Attach<FullyConnected_fb_io_block>();
51 Attach<FullyConnected_fb_io_b8_f8>();
52 Attach<FullyConnected_bf_io_input_spatial>();
53 Attach<FullyConnectedKernelMMAD>();
54 Attach<FullyConnected_mmad_batched>();
55 Attach<FullyConnectedKernelIMAD>();
58 KernelsData fully_connected_kernel_selector::GetBestKernels(const Params& params, const optional_params& options) const
60 return GetAutoTuneBestKernel(params, options, KernelType::FULLY_CONNECTED);