Class DebugInfo

Inheritance Relationships

Derived Types

Class Documentation

class DebugInfo

DebugInfo defines information for debug trace.

Subclassed by mindspore::GraphDebugInfo, mindspore::NodeDebugInfo

Public Functions

inline DebugInfo()

Construct a default DebugInfo.

inline explicit DebugInfo(const std::string &name)

Construct DebugInfo with the given name.

Parameters

name[in] The DebugInfo name.

inline explicit DebugInfo(const LocationPtr &loc)

Construct DebugInfo with the given location.

Parameters

loc[in] The location for DebugInfo.

inline explicit DebugInfo(TraceInfoPtr &&trace_info)

Construct DebugInfo with the given trace info.

Parameters

trace_info[in] The trace info for DebugInfo.

virtual ~DebugInfo() = default

Destructor of DebugInfo.

int64_t get_id() const

Get the id.

Returns

The id of the debug info.

inline int64_t unique_id() const

Get the unique id.

Returns

The unique id.

int64_t unique_id_through_copy() const

Get the unique id through copy.

Returns

The unique id through copy.

inline void set_trace_info(const TraceInfoPtr &trace_info)

Set the trace info.

Parameters

trace_info[in] The trace info to be set.

inline TraceInfoPtr trace_info() const

Get the trace info.

Returns

The trace info.

inline void set_location(const LocationPtr &loc)

Set the location.

Parameters

loc[in] The location to be set.

inline virtual LocationPtr location() const

Get the location.

Returns

The location.

inline std::string name()

Get the name.

Returns

The name of the DebugInfo.

inline void set_name(const std::string &name)

Set the name.

Parameters

name[in] The name to be set.

inline virtual std::string debug_name()

Get the debug name.

Returns

The debug name of the DebugInfo.

inline virtual std::string get_python_func_belonged()

Get the python function name that this DebugInfo belongs to.

Returns

The python function name that this DebugInfo belongs to.