19 #include "ngraph/op/util/binary_elementwise_arithmetic.hpp"
28 class NGRAPH_DEPRECATED(
29 "This operation is deprecated and will be removed soon. "
30 "Use v1::Subtract instead of it.") NGRAPH_API Subtract
31 :
public util::BinaryElementwiseArithmetic
33 NGRAPH_SUPPRESS_DEPRECATED_START
35 static constexpr NodeTypeInfo type_info{
"Subtract", 0};
36 const NodeTypeInfo& get_type_info()
const override {
return type_info; }
38 : util::BinaryElementwiseArithmetic(AutoBroadcastSpec::NONE)
47 Subtract(
const Output<Node>& arg0,
48 const Output<Node>& arg1,
49 const AutoBroadcastSpec& auto_broadcast = AutoBroadcastSpec());
51 virtual std::shared_ptr<Node>
52 clone_with_new_inputs(
const OutputVector& new_args)
const override;
54 bool evaluate(
const HostTensorVector& outputs,
55 const HostTensorVector& inputs)
const override;
56 NGRAPH_SUPPRESS_DEPRECATED_END
67 NGRAPH_RTTI_DECLARATION;
80 const Output<Node>& arg1,
84 virtual std::shared_ptr<Node>
85 clone_with_new_inputs(
const OutputVector& new_args)
const override;
86 bool evaluate(
const HostTensorVector& outputs,
87 const HostTensorVector& inputs)
const override;
91 NGRAPH_SUPPRESS_DEPRECATED_START
93 NGRAPH_SUPPRESS_DEPRECATED_END
96 NGRAPH_DEPRECATED(
"This operator was deprecated and will be removed with v0 operation.")