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.
19 #include "weight_bias_params.h"
21 namespace kernel_selector
24 ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
26 ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
27 struct convolution_params : public weight_bias_params
29 convolution_params() : weight_bias_params(KernelType::CONVOLUTION) {}
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;
45 MultiDataTensor weights_quantization_factors;
46 MultiDataTensor output_calibration_factors;
47 virtual std::string to_string() const override;
48 virtual ParamsKey GetParamsKey() const override;
51 ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
52 // convolution_optional_params
53 ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
54 struct convolution_optional_params : weight_bias_optional_params
56 convolution_optional_params() : weight_bias_optional_params(KernelType::CONVOLUTION) {}