Publishing R3
[platform/upstream/dldt.git] / inference-engine / thirdparty / clDNN / api / C / convolution_grad_input.h
1 /*
2 // Copyright (c) 2018 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 ///////////////////////////////////////////////////////////////////////////////////////////////////
18 #ifndef CONVOLUTION_GRAD_INPUT_H
19 #define CONVOLUTION_GRAD_INPUT_H
20
21 #include "cldnn.h"
22 /// @addtogroup c_api C API
23 /// @{
24 /// @addtogroup c_topology Network Topology
25 /// @{
26 /// @addtogroup c_primitives Primitives
27 /// @{
28
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32
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.
39 cldnn_tensor stride;
40 /// @brief On how many cards split the computation to.
41 uint32_t split;
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)
49
50 CLDNN_DECLARE_PRIMITIVE_TYPE_ID(convolution_grad_input);
51
52 #ifdef __cplusplus
53 }
54 #endif
55
56 /// @}
57 /// @}
58 /// @}
59 #endif /* CONVOLUTION_GRAD_INPUT_H */
60