Class NodeDebugInfo
Defined in File info.h
Inheritance Relationships
Base Type
public mindspore::DebugInfo
(Class DebugInfo)
Class Documentation
-
class NodeDebugInfo : public mindspore::DebugInfo
NodeDebugInfo defines debug information for a node.
Public Functions
-
inline NodeDebugInfo()
Construct a default NodeDebugInfo.
-
inline explicit NodeDebugInfo(const std::string &name)
Construct NodeDebugInfo with a given name.
- Parameters
name – [in] the name of the NodeDebugInfo.
-
inline explicit NodeDebugInfo(TraceInfoPtr &&trace_info)
Construct NodeDebugInfo with the given trace info.
- Parameters
trace_info – [in] The trace info for NodeDebugInfo.
-
~NodeDebugInfo() override = default
Destructor of the NodeDebugInfo.
-
virtual std::string debug_name() override
Get the debug name.
- Returns
The debug name of the DebugInfo.
-
inline void set_node(const AnfNodePtr &node)
Set the node.
- Parameters
node – [in] The node to be set.
-
inline AnfNodePtr get_node() const
Get the node.
- Returns
The node.
-
inline void set_py_func_belonged(const std::string &name)
Set python function name that this NodeDebugInfo belongs to.
- Parameters
name – [in] The python function name to be set.
-
inline virtual std::string get_python_func_belonged() override
Get the python function name that this DebugInfo belongs to.
- Returns
The python function name that this DebugInfo belongs to.
-
inline NodeDebugInfo()