Use group_id as step name when no other information is available.
PiperOrigin-RevId: 292262246 Change-Id: Ia7648053429dda12625067112af98c4ae04a7ba3
This commit is contained in:
parent
48bf9acb2e
commit
7b265f2af1
@ -98,7 +98,7 @@ std::string EventNode::GetGroupName() const {
|
|||||||
if (auto graph_type_stat = GetContextStat(StatType::kGraphType)) {
|
if (auto graph_type_stat = GetContextStat(StatType::kGraphType)) {
|
||||||
name_parts.push_back((*graph_type_stat)->str_value());
|
name_parts.push_back((*graph_type_stat)->str_value());
|
||||||
}
|
}
|
||||||
int64 step_num = 0;
|
int64 step_num = group_id_.value_or(0);
|
||||||
if (auto step_num_stat = GetContextStat(StatType::kStepNum)) {
|
if (auto step_num_stat = GetContextStat(StatType::kStepNum)) {
|
||||||
step_num = (*step_num_stat)->int64_value();
|
step_num = (*step_num_stat)->int64_value();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user