Publishing 2019 R1 content
[platform/upstream/dldt.git] / inference-engine / thirdparty / clDNN / api / C / eltwise.h
index 1668fdd..e0f8a79 100644 (file)
@@ -1,5 +1,5 @@
 /*
-// Copyright (c) 2016 Intel Corporation
+// Copyright (c) 2016-2019 Intel Corporation
 //
 // Licensed under the Apache License, Version 2.0 (the "License");
 // you may not use this file except in compliance with the License.
@@ -48,13 +48,34 @@ typedef enum /*:int32_t*/
     /// @brief Eltwise pow.
     cldnn_eltwise_pow,
     /// @brief Eltwise mod.
-    cldnn_eltwise_mod
+    cldnn_eltwise_mod,
+    /// @brief Eltwise equal.
+    cldnn_eltwise_eq,
+    /// @brief Eltwise not equal.
+    cldnn_eltwise_ne,
+    /// @brief Eltwise less.
+    cldnn_eltwise_lt,
+    /// @brief Eltwise less of equal.
+    cldnn_eltwise_le,
+    /// @brief Eltwise greater.
+    cldnn_eltwise_gt,
+    /// @brief Eltwise greater or equal.
+    cldnn_eltwise_ge,
+    /// @brief Eltwise and.
+    cldnn_eltwise_and,
+    /// @brief Eltwise or.
+    cldnn_eltwise_or,
+    /// @brief Eltwise xor.
+    cldnn_eltwise_xor,
+    /// @brief Eltwise squared diff.
+    cldnn_eltwise_squared_diff
 } cldnn_eltwise_mode;
 
 /// @brief Performs elementwise operations (sum, subtract, max or product) on two input primitives
 /// Also supports built-in Relu @CLDNN_PRIMITIVE_DESC{activation} available by setting it in arguments.
 /// @notes
-/// - both inputs have to have equal sizes in all dimensions
+/// - both inputs have to have equal sizes in all dimensions or the input tensors are broadcastable
+///   to the same shape in which the size of each dimention is a max. of input sizes on this dimension)
 /// - format of both inputs has to be the same
 /// - when using integer types, only following eltwise modes are supported: sum, sub, prod, div
 CLDNN_BEGIN_PRIMITIVE_DESC(eltwise)
@@ -70,6 +91,9 @@ cldnn_float_arr coefficients;
 uint32_t with_activation;
 /// @brief Relu activation slope.
 float activation_negative_slope;
+/// @brief Defines shift in input buffers between adjacent calculations of output values.
+cldnn_tensor_arr stride;
+
 CLDNN_END_PRIMITIVE_DESC(eltwise)
 
 CLDNN_DECLARE_PRIMITIVE_TYPE_ID(eltwise);