Any

Any // Boolean "any" reduction operation.

Description

Reduces a tensor of booleans, eliminating the specified reduction axes by taking the logical disjunction (i.e., “OR-reduce”).

Inputs

Name

Element Type

Shape

arg

ngraph::element::boolean

Any

Attributes

Name

Description

reduction_axes

The axis positions (0-based) on which to calculate the disjunction

Outputs

Name

Element Type

Shape

output

Same as arg

Same as arg, with reduction_axes removed.

C++ Interface

class Any : public ngraph::op::util::LogicalReduction

Logical “any” reduction 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

Any()

Constructs an “any” reduction operation.

Any(const Output<Node> &arg, const AxisSet &reduction_axes)

Constructs an “any” reduction operation.

Parameters
  • arg: The tensor to be reduced.

  • reduction_axes: The axis positions (0-based) to be eliminated.

Any(const Output<Node> &arg, const Output<Node> &reduction_axes)

Constructs an “any” reduction operation.

Parameters
  • arg: The tensor to be reduced.

  • reduction_axes: The axis positions (0-based) to be eliminated.

virtual std::shared_ptr<Node> get_default_value() const

Return

The default value for Any.