Commit e9a09617 authored by gaurides's avatar gaurides Committed by Scott Cyphers

Adding default ctor for Constant (#3938)

* Adding default ctor

* Address PR feedback
parent bdd16da3
......@@ -36,6 +36,7 @@ namespace ngraph
NGRAPH_API
static constexpr NodeTypeInfo type_info{"Constant", 0};
const NodeTypeInfo& get_type_info() const override { return type_info; }
Constant() = default;
/// \brief Constructs a tensor constant.
///
/// \param type The element type of the tensor constant.
......@@ -363,6 +364,7 @@ namespace ngraph
static constexpr NodeTypeInfo type_info{"ScalarConstantLikeBase", 0};
const NodeTypeInfo& get_type_info() const override { return type_info; }
std::shared_ptr<op::Constant> as_constant() const;
ScalarConstantLikeBase() = default;
protected:
ScalarConstantLikeBase(const OutputVector& args)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment