Xuejun/remove api result related (#15806)
* [Remove APIs] remove api Result(const Output<Node>& arg, bool), set_needs_default_layout(bool) & needs_default_layout() Signed-off-by: Zhai, Xuejun <xuejun.zhai@intel.com> * [Remove APIs] remove const AutoBroadcastSpec NUMPY & NONE Signed-off-by: Zhai, Xuejun <xuejun.zhai@intel.com> * [Remove APIs] clear code Signed-off-by: Zhai, Xuejun <xuejun.zhai@intel.com> --------- Signed-off-by: Zhai, Xuejun <xuejun.zhai@intel.com>
This commit is contained in:
parent
e534efd4a8
commit
51a3a02115
@ -24,21 +24,11 @@ public:
|
|||||||
/// \param arg Node that produces the input tensor.
|
/// \param arg Node that produces the input tensor.
|
||||||
Result(const Output<Node>& arg);
|
Result(const Output<Node>& arg);
|
||||||
|
|
||||||
OPENVINO_DEPRECATED("This constructor is redundant, use Result(const Output<Node>& arg) instead.")
|
|
||||||
Result(const Output<Node>& arg, bool);
|
|
||||||
|
|
||||||
bool visit_attributes(AttributeVisitor& visitor) override;
|
bool visit_attributes(AttributeVisitor& visitor) override;
|
||||||
void validate_and_infer_types() override;
|
void validate_and_infer_types() override;
|
||||||
|
|
||||||
std::shared_ptr<Node> clone_with_new_inputs(const OutputVector& new_args) const override;
|
std::shared_ptr<Node> clone_with_new_inputs(const OutputVector& new_args) const override;
|
||||||
|
|
||||||
OPENVINO_DEPRECATED("This method provides no usage and has no replacement.")
|
|
||||||
void set_needs_default_layout(bool) {}
|
|
||||||
OPENVINO_DEPRECATED("This method provides no usage and has no replacement.")
|
|
||||||
bool needs_default_layout() const {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
OPENVINO_SUPPRESS_DEPRECATED_START
|
OPENVINO_SUPPRESS_DEPRECATED_START
|
||||||
bool evaluate(const HostTensorVector& outputs, const HostTensorVector& inputs) const override;
|
bool evaluate(const HostTensorVector& outputs, const HostTensorVector& inputs) const override;
|
||||||
OPENVINO_SUPPRESS_DEPRECATED_END
|
OPENVINO_SUPPRESS_DEPRECATED_END
|
||||||
|
@ -170,10 +170,6 @@ struct OPENVINO_API AutoBroadcastSpec {
|
|||||||
bool operator!=(const AutoBroadcastSpec& a) const {
|
bool operator!=(const AutoBroadcastSpec& a) const {
|
||||||
return !(*this == a);
|
return !(*this == a);
|
||||||
}
|
}
|
||||||
OPENVINO_DEPRECATED("Use ov::op::AutoBroadcastType::NUMPY")
|
|
||||||
static const AutoBroadcastSpec NUMPY;
|
|
||||||
OPENVINO_DEPRECATED("Use ov::op::AutoBroadcastType::NONE")
|
|
||||||
static const AutoBroadcastSpec NONE;
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
AutoBroadcastType type_from_string(const std::string& type) const;
|
AutoBroadcastType type_from_string(const std::string& type) const;
|
||||||
|
@ -19,10 +19,6 @@ op::Result::Result(const Output<Node>& arg) : Op({arg}) {
|
|||||||
constructor_validate_and_infer_types();
|
constructor_validate_and_infer_types();
|
||||||
}
|
}
|
||||||
|
|
||||||
op::Result::Result(const Output<Node>& arg, bool) : Op({arg}) {
|
|
||||||
constructor_validate_and_infer_types();
|
|
||||||
}
|
|
||||||
|
|
||||||
bool ngraph::op::v0::Result::visit_attributes(AttributeVisitor& visitor) {
|
bool ngraph::op::v0::Result::visit_attributes(AttributeVisitor& visitor) {
|
||||||
OV_OP_SCOPE(v0_Result_visit_attributes);
|
OV_OP_SCOPE(v0_Result_visit_attributes);
|
||||||
return true;
|
return true;
|
||||||
|
@ -122,9 +122,6 @@ NGRAPH_API EnumNames<ngraph::op::RecurrentSequenceDirection>& EnumNames<ngraph::
|
|||||||
return enum_names;
|
return enum_names;
|
||||||
}
|
}
|
||||||
|
|
||||||
const op::AutoBroadcastSpec op::AutoBroadcastSpec::NUMPY(AutoBroadcastType::NUMPY, 0);
|
|
||||||
const op::AutoBroadcastSpec op::AutoBroadcastSpec::NONE{AutoBroadcastType::NONE, 0};
|
|
||||||
|
|
||||||
std::ostream& op::operator<<(std::ostream& s, const ngraph::op::PadMode& type) {
|
std::ostream& op::operator<<(std::ostream& s, const ngraph::op::PadMode& type) {
|
||||||
return s << as_string(type);
|
return s << as_string(type);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user