diff --git a/mindspore/ccsrc/debug/debug_services.h b/mindspore/ccsrc/debug/debug_services.h index 27c0bcad59..1ee4c3628e 100644 --- a/mindspore/ccsrc/debug/debug_services.h +++ b/mindspore/ccsrc/debug/debug_services.h @@ -66,12 +66,12 @@ class DebugServices { RANGE }; - typedef struct condition { + struct condition_t { CONDITION_TYPE type; float parameter = 0; - } condition_t; + }; - typedef struct parameter { + struct parameter_t { std::string name; bool disabled; double_t value; @@ -97,9 +97,9 @@ class DebugServices { hit = condition_check[inequality_type]; } - } parameter_t; + }; - typedef struct watchpoint { + struct watchpoint_t { unsigned int id; condition_t condition; std::vector> check_node_list; @@ -165,7 +165,7 @@ class DebugServices { bool change_condition() const { return condition.type == CHANGE_TOO_LARGE || condition.type == CHANGE_TOO_SMALL || condition.type == NOT_CHANGED; } - } watchpoint_t; + }; void AddWatchpoint(unsigned int id, unsigned int watch_condition, float parameter, const std::vector> &check_node_list,