Documentation
Install OpenVINO™
core
include
ngraph
op
sigmoid.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/op.hpp"
20
#include "ngraph/op/util/binary_elementwise_arithmetic.hpp"
21
#include "ngraph/op/util/unary_elementwise_arithmetic.hpp"
22
#include "ngraph/util.hpp"
23
24
namespace
ngraph
25
{
26
namespace
op
27
{
28
namespace
v0
29
{
30
class
NGRAPH_API
Sigmoid
:
public
util::UnaryElementwiseArithmetic
31
{
32
public
:
33
static
constexpr NodeTypeInfo type_info{
"Sigmoid"
, 0};
34
const
NodeTypeInfo&
get_type_info
()
const override
{
return
type_info; }
35
Sigmoid
(
const
Output<Node>& arg);
36
Sigmoid
() =
default
;
37
virtual
std::shared_ptr<Node>
38
clone_with_new_inputs(
const
OutputVector& new_args)
const override
;
39
bool
evaluate(
const
HostTensorVector& outputs,
40
const
HostTensorVector& inputs)
const override
;
41
};
42
}
43
using
v0::Sigmoid;
44
}
45
}
ngraph::op::util::UnaryElementwiseArithmetic
Abstract base class for elementwise unary arithmetic operations, i.e., operations where the same scal...
Definition:
unary_elementwise_arithmetic.hpp:49
ngraph::op::v0::Sigmoid::get_type_info
const NodeTypeInfo & get_type_info() const override
Definition:
sigmoid.hpp:34
ngraph::op::v0::Sigmoid
Definition:
sigmoid.hpp:31
ngraph
The Intel nGraph C++ API.
Definition:
attribute_adapter.hpp:28