Introduce LOGICAL_OR_EX in NeuralNetworksEx.h (#3618)
authorShubham Gupta/SNAP /SRI-Bangalore/Engineer/삼성전자 <shub98.gupta@samsung.com>
Wed, 21 Nov 2018 01:01:17 +0000 (06:31 +0530)
committer오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 <hseok82.oh@samsung.com>
Wed, 21 Nov 2018 01:01:17 +0000 (10:01 +0900)
This patch Introduces LOGICAL_AND_EX in NeuralNetworksEx.h.
Related issue: #3459

Signed-off-by: shubham <shub98.gupta@samsung.com>
include/NeuralNetworksEx.h

index 6973600..49e0515 100644 (file)
@@ -365,6 +365,41 @@ typedef enum {
      *      A non-zero byte represents True, a hit. A zero indicates otherwise.
      */
     ANEURALNETWORKS_LOGICAL_AND_EX = 50019,
+
+    /**
+     * Computes element-wise truth value of two input tensors for LOGICAL OR.
+     *
+     * Takes two input tensors of identical {@link OperandCode} and compatible dimensions.
+     * The output is the result of comparison of two input tensors.
+     *
+     * Two dimensions are compatible when:
+     *     1. they are equal, or
+     *     2. one of them is 1
+     *
+     * The size of the output is the maximum size along each dimension of the
+     * input operands. It starts with the trailing dimensions, and works its way
+     * forward.
+     *
+     * Supported tensor {@link OperandCode}:
+     * * {@link ANEURALNETWORKS_TENSOR_QUANT8_ASYMM}
+     *
+     * Supported tensor rank: up to 4
+     *
+     * Inputs:
+     * * 0: An n-D boolean tensor, specifying the first input.
+     *      Stored as {@link ANEURALNETWORKS_TENSOR_QUANT8_ASYMM} with offset 0
+     *      and scale 1.0f.
+     *      A non-zero byte represents True, a hit. A zero indicates otherwise.
+     * * 1: A tensor of the same {@link OperandCode}, and compatible dimensions
+     *      as input0.
+     *
+     * Outputs:
+     * * 0: A boolean tensor indicating the truth value of two input tensors for LOGICAL OR.
+     *      Stored as {@link ANEURALNETWORKS_TENSOR_QUANT8_ASYMM} with offset 0
+     *      and scale 1.0f.
+     *      A non-zero byte represents True, a hit. A zero indicates otherwise.
+     */
+    ANEURALNETWORKS_LOGICAL_OR_EX = 50020,
 } OperationCodeEx;  // extends OperationCode
 
 typedef OperationCodeEx ANeuralNetworksOperationTypeEx;