Documentation
Install OpenVINO™
core
include
ngraph
op
reduce_logical_or.hpp
1
//*****************************************************************************
2
// Copyright 2017-2020 Intel Corporation
3
//
4
// Licensed under the Apache License, Version 2.0 (the "License");
5
// you may not use this file except in compliance with the License.
6
// You may obtain a copy of the License at
7
//
8
// http://www.apache.org/licenses/LICENSE-2.0
9
//
10
// Unless required by applicable law or agreed to in writing, software
11
// distributed under the License is distributed on an "AS IS" BASIS,
12
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
// See the License for the specific language governing permissions and
14
// limitations under the License.
15
//*****************************************************************************
16
17
#pragma once
18
19
#include "ngraph/op/util/logical_reduction_keep_dims.hpp"
20
21
namespace
ngraph
22
{
23
namespace
op
24
{
25
namespace
v1
26
{
27
/// \brief Performs a reduction using "logical or"
28
///
29
/// The reduction is performed over slices of the first input. The slices shape depends
30
/// on the values passed to the second input - the axes.
31
class
NGRAPH_API
ReduceLogicalOr
:
public
util::LogicalReductionKeepDims
32
{
33
public
:
34
NGRAPH_RTTI_DECLARATION;
35
ReduceLogicalOr
() =
default
;
36
/// \brief Constructs a ReduceLogicalOr node.
37
///
38
/// \param data - The input tensor with data to be reduced
39
/// \param reduction_axes - The input tensor with information about axes over which
40
/// the first tensor should be sliced prior to the reduction operation
41
/// \param keep_dims - Indicates if the axes used for reduction should be held/kept
42
ReduceLogicalOr
(
const
Output<Node>& data,
43
const
Output<Node>& reduction_axes,
44
const
bool
keep_dims =
false
);
45
46
virtual
std::shared_ptr<Node>
47
clone_with_new_inputs(
const
OutputVector& new_args)
const override
;
48
49
bool
evaluate(
const
HostTensorVector& outputs,
50
const
HostTensorVector& inputs)
const override
;
51
};
52
}
53
}
54
}
ngraph::op::v1::ReduceLogicalOr
Performs a reduction using "logical or".
Definition:
reduce_logical_or.hpp:32
ngraph::op::util::LogicalReductionKeepDims
Definition:
logical_reduction_keep_dims.hpp:29
ngraph::op::v1::ReduceLogicalOr::ReduceLogicalOr
ReduceLogicalOr(const Output< Node > &data, const Output< Node > &reduction_axes, const bool keep_dims=false)
Constructs a ReduceLogicalOr node.
ngraph
The Intel nGraph C++ API.
Definition:
attribute_adapter.hpp:28