Class ValueNode
Defined in File anf.h
Inheritance Relationships
Base Type
public mindspore::ANode
Class Documentation
-
class ValueNode : public mindspore::ANode
Public Functions
-
inline explicit ValueNode(const ValuePtr &value)
Constructor of ValueNode.
- Parameters
value – [in] The value of this ValueNode.
-
inline ValueNode(const ValuePtr &value, NodeDebugInfoPtr &&debug_info)
Constructor of ValueNode.
- Parameters
value – [in] The value of this ValueNode.
debug_info – [in] The debug info to be used for this ValueNode.
-
~ValueNode() override = default
Destructor.
-
inline void set_value(const ValuePtr &value)
Set the value of this ValueNode.
- Parameters
value – [in] The value.
-
inline const ValuePtr &value() const
Get the value of this ValueNode.
- Returns
The value.
-
inline void set_has_new_value(bool flag)
Set whether this ValueNode has a new value.
- Parameters
flag – [in] Whether this ValueNode has a new value.
-
inline bool has_new_value() const
Check whether this ValueNode has a new value.
- Returns
Whether this ValueNode has a new value.
-
inline size_t used_graph_count() const
Get the count of graphs using this ValueNode.
- Returns
The count of graphs using this ValueNode.
-
inline void set_used_graph_count(size_t used_graph_count)
Set the count of graphs using this ValueNode.
- Parameters
used_graph_count – [in] The count of graphs using this ValueNode.
-
inline explicit ValueNode(const ValuePtr &value)