Publishing 2019 R1 content
[platform/upstream/dldt.git] / inference-engine / thirdparty / clDNN / api / C / gemm.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 ///////////////////////////////////////////////////////////////////////////////////////////////////
18 #ifndef GEMM_H
19 #define GEMM_H
20
21 #include <stdbool.h>
22 #include "cldnn.h"
23 /// @addtogroup c_api C API
24 /// @{
25 /// @addtogroup c_topology Network Topology
26 /// @{
27 /// @addtogroup c_primitives Primitives
28 /// @{
29
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33
34 /// @brief Performs forward attention layer.
35
36 CLDNN_BEGIN_PRIMITIVE_DESC(gemm)
37 /// @brief Variable containing ALPHA parameter
38 float alpha;
39 /// @brief Variable containing BETA parameter
40 float beta;
41 /// @brief Flag for transposing first input matrix
42 bool transpose_input1;
43 /// @brief Flag for transposing second input matrix
44 bool transpose_input2;
45 CLDNN_END_PRIMITIVE_DESC(gemm)
46
47 CLDNN_DECLARE_PRIMITIVE_TYPE_ID(gemm);
48
49
50 #ifdef __cplusplus
51 }
52 #endif
53
54 /// @}
55 /// @}
56 /// @}
57 #endif /* GEMM_H */
58