Not¶

Not // Elementwise negation operation


Description¶

Produces a single output tensor of boolean type and the same shape as arg, where the value at each coordinate of output is the negation of the value at each arg coordinate.

Inputs¶

Name Element Type Shape
arg element::boolean Any

Outputs¶

Name Element Type Shape
output element::boolean Same as arg

Mathematical Definition¶

$\mathtt{output}_{i_0, \ldots, i_{n-1}} = \neg\mathtt{arg}_{i_0, \ldots, i_{n-1}}$

C++ Interface¶

class Not : public ngraph::op::Op

Elementwise logical negation operation.

Public Functions

Not(const std::shared_ptr<Node> &arg)

Constructs a logical negation operation.

Parameters
• arg: Node that produces the input tensor.

void validate_and_infer_types()

Throws if the node is invalid.