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.
17 ///////////////////////////////////////////////////////////////////////////////////////////////////
18 #ifndef CONVOLUTION_GRAD_INPUT_H
19 #define CONVOLUTION_GRAD_INPUT_H
22 /// @addtogroup c_api C API
24 /// @addtogroup c_topology Network Topology
26 /// @addtogroup c_primitives Primitives
33 /// @brief Performs transposed convolution.
34 /// @details convolution_grad_input is similar to convolution layer with the weights flipped on the axis and stride and input padding parameters used in opposite sense as in convolution.
35 CLDNN_BEGIN_PRIMITIVE_DESC(convolution_grad_input)
36 /// @brief Defines a shift, relative to (0,0) position of the input buffer, where (0,0) point of the convolution_grad_input window should start calculations.
37 cldnn_tensor input_offset;
38 /// @brief Defines the spatial dimensions of stride of adjacent elements in input buffer.
40 /// @brief On how many cards split the computation to.
42 /// @brief Indicates that the primitive has user-defined output size (non-zero value).
43 uint32_t with_output_size;
44 /// @brief User-defined output data size of the primitive (w/o padding).
45 cldnn_tensor output_size;
46 /// @brief Array of primitive ids containing weights data. Size of array should be equivalent to @p split.
47 cldnn_primitive_id_arr weights;
48 CLDNN_END_PRIMITIVE_DESC(convolution_grad_input)
50 CLDNN_DECLARE_PRIMITIVE_TYPE_ID(convolution_grad_input);
59 #endif /* CONVOLUTION_GRAD_INPUT_H */