diff --git a/include/onnxruntime/core/graph/node_arg.h b/include/onnxruntime/core/graph/node_arg.h index f1f111c27e..179405a737 100644 --- a/include/onnxruntime/core/graph/node_arg.h +++ b/include/onnxruntime/core/graph/node_arg.h @@ -39,6 +39,7 @@ class NodeArg { const ONNX_NAMESPACE::TypeProto* p_arg_type); NodeArg(NodeArg&&) = default; + NodeArg& operator=(NodeArg&& other) = default; /** Gets the name. */ const std::string& Name() const noexcept; @@ -89,8 +90,6 @@ class NodeArg { void SetType(ONNX_NAMESPACE::DataType p_type); void SetType(const ONNX_NAMESPACE::TypeProto& type_proto); - NodeArg& operator=(NodeArg&& other) = delete; - // Node arg PType. ONNX_NAMESPACE::DataType type_;