19 #include "ngraph/op/util/unary_elementwise_arithmetic.hpp"
31 static constexpr NodeTypeInfo type_info{
"Negative", 0};
32 const NodeTypeInfo&
get_type_info()
const override {
return type_info; }
41 virtual std::shared_ptr<Node>
42 clone_with_new_inputs(
const OutputVector& new_args)
const override;
43 bool evaluate(
const HostTensorVector& outputs,
44 const HostTensorVector& inputs)
const override;
50 std::shared_ptr<Node> operator-(
const Output<Node>& arg0);
Abstract base class for elementwise unary arithmetic operations, i.e., operations where the same scal...
Definition: unary_elementwise_arithmetic.hpp:49
const NodeTypeInfo & get_type_info() const override
Definition: negative.hpp:32
Negative(const Output< Node > &arg)
Constructs a negative operation.
Elementwise negative operation.
Definition: negative.hpp:29
The Intel nGraph C++ API.
Definition: attribute_adapter.hpp:28
Visits the attributes of a node, primarily for serialization-like tasks.
Definition: attribute_visitor.hpp:70
Negative()=default
Constructs a negative operation.