Bug Fix: NodeArg class has a move constructor but doesn't have a move assignment operator

This commit is contained in:
Changming Sun 2019-10-30 15:01:13 -07:00
parent d6849bd26c
commit 67755adfd8

View file

@ -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_;