7 #include "ngraph/op/op.hpp"
8 #include "ngraph/op/util/logical_reduction.hpp"
26 const bool keep_dims =
false);
31 NGRAPH_RTTI_DECLARATION;
37 void set_keep_dims(
bool keep_dims) { m_keep_dims = keep_dims; }
40 bool m_keep_dims =
false;
Visits the attributes of a node, primarily for serialization-like tasks.
Definition: attribute_visitor.hpp:59
A handle for one of a node's outputs.
Definition: node_output.hpp:33
Definition: logical_reduction_keep_dims.hpp:17
LogicalReductionKeepDims(const Output< Node > &arg, const Output< Node > &reduction_axes, const bool keep_dims=false)
void validate_and_infer_types() override
Verifies that attributes and inputs are consistent and computes output shapes and element types....
bool get_keep_dims() const
Definition: logical_reduction_keep_dims.hpp:36
Abstract base class for logical reduction operations, i.e., operations where chosen axes of the input...
Definition: logical_reduction.hpp:19
The Intel nGraph C++ API.
Definition: attribute_adapter.hpp:16