2 // Copyright (c) 2018 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.
19 #include "common_kernel_base.h"
20 #include "kernel_selector_params.h"
22 namespace kernel_selector
24 ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
26 ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
27 struct reorg_yolo_params : public base_params
29 reorg_yolo_params() : base_params(KernelType::REORG_YOLO) {}
33 virtual ParamsKey GetParamsKey() const
35 auto k = base_params::GetParamsKey();
40 ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
41 // reorg_yolo_optional_params
42 ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
43 struct reorg_yolo_optional_params : optional_params
45 reorg_yolo_optional_params() : optional_params(KernelType::REORG_YOLO) {}
48 ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
50 ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
51 class ReorgYoloKernelRef : public common_kernel_base
54 ReorgYoloKernelRef() : common_kernel_base("reorg_yolo_gpu_ref") {}
55 virtual ~ReorgYoloKernelRef() {}
57 using DispatchData = CommonDispatchData;
58 virtual KernelsData GetKernelsData(const Params& params, const optional_params& options) const override;
61 virtual ParamsKey GetSupportedKey() const override;
62 virtual JitConstants GetJitConstants(const reorg_yolo_params& params) const;