Files
openvino/docs/ops/logical/LogicalNot_1.md
Piotr Szmelczynski 81c8cd711b Revise logical not (#6942)
* update spec

* remove backend tests and create op_reference test

* add logicalNot to constants

* add NGRAPH CHECK for number of inputs and outputs

* create type_prop tests

* create visitor test

* add type_op and visitor tests to CMakeLists

* remove backend test from CMakeList

* update T to T_BOOL

* update outputs part in spec

* fix type in the spec

* fixed conflicts in CMakeList

* update ReferenceLogicalLayerTest to also work with unary logical operator

* update logical_not op_reference test to use ReferenceLogicalLayerTest

* fix style

* fix style

* resolve conflict

* resolve conflict

* remove typo

* fix style

* Update ReferenceLogicalLayerTest class tto take input as a vector

* Create makeLogical function that takes ParameterVector as parameter

* update op_reference logical tests to take input as a vector

* Replace elem_type with input.type

* update getTestCaseName method
2021-08-27 06:55:19 +03:00

1.1 KiB

LogicalNot

Versioned name: LogicalNot-1

Category: Logical unary

Short description: LogicalNot performs element-wise logical negation operation with given tensor.

Detailed description: LogicalNot performs element-wise logical negation operation with given tensor, based on the following mathematical formula:

\f[ a_{i} = \lnot a_{i} \f]

Attributes: LogicalNot operation has no attributes.

Inputs

  • 1: A tensor of type T_BOOL and arbitrary shape. Required.

Outputs

  • 1: The result of element-wise logical negation operation. A tensor of type T_BOOL and the same shape as input tensor.

Types

  • T_BOOL: boolean.

\f[ a_{i} = \lnot a_{i} \f]

Example

<layer ... type="LogicalNot">
    <input>
        <port id="0">
            <dim>256</dim>
            <dim>56</dim>
        </port>
    </input>
    <output>
        <port id="1">
            <dim>256</dim>
            <dim>56</dim>
        </port>
    </output>
</layer>