All

All // Boolean "all" reduction operation.

Description

Reduces a tensor of booleans, eliminating the specified reduction axes by taking the logical conjunction (i.e., “AND-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 conjunction

Outputs

Name

Element Type

Shape

output

Same as arg

Same as arg, with reduction_axes removed.

C++ Interface

class All : public ngraph::op::util::LogicalReduction

Logical “all” reduction operation.

Public Functions

const NodeTypeInfo &get_type_info() const

Returns the NodeTypeInfo for the node’s class. During transition to type_info, returns a dummy type_info for Node if the class has not been updated yet.

All()

Constructs an “all” reduction operation.

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

Constructs an “all” reduction operation.

Parameters
  • arg: The tensor to be reduced.

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

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

Constructs an “all” 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 All.