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

const std::string &description() const

Get the string name for the type of the node, such as Add or Multiply. The class name, must not contain spaces as it is used for codegen.

Return
A const reference to the node’s type name

Not()

Constructs a logical negation operation.

Not(const Output<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.