Publishing 2019 R1 content
[platform/upstream/dldt.git] / inference-engine / thirdparty / clDNN / kernel_selector / core / actual_kernels / convolution / convolution_params.h
1 /*
2 // Copyright (c) 2016 Intel Corporation
3 //
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
7 //
8 //      http://www.apache.org/licenses/LICENSE-2.0
9 //
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.
15 */
16
17 #pragma once
18
19 #include "weight_bias_params.h"
20
21 namespace kernel_selector
22 {
23
24     ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
25     // convolution_params
26     ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
27     struct convolution_params : public weight_bias_params
28     {
29         convolution_params() : weight_bias_params(KernelType::CONVOLUTION) {}
30
31         uSize    filterSize;
32         uSize    stride;
33         uSize    dilation;
34         uSize    padding;
35         uint32_t split = 1;
36         bool     depthwise_separable_opt = false;
37         bool     transposed = false;
38         bool     int8_quantization = false;
39         bool     output_calibration = false;
40         bool     local_convolution = false;
41         float    input_quantization_factor = 1.0f;
42         float    output_quantization_factor = 1.0f;
43         uint32_t groups = 1;
44
45         MultiDataTensor weights_quantization_factors;
46         MultiDataTensor output_calibration_factors;
47         virtual std::string to_string() const override;
48         virtual ParamsKey GetParamsKey() const override;
49     };
50
51     ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
52     // convolution_optional_params
53     ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
54     struct convolution_optional_params : weight_bias_optional_params
55     {
56         convolution_optional_params() : weight_bias_optional_params(KernelType::CONVOLUTION) {}
57     };
58
59 }