Update tensorflow/core/profiler/internal/tfprof_code.cc
Co-authored-by: Mihai Maruseac <mihai.maruseac@gmail.com>
This commit is contained in:
parent
5bbedc7ec0
commit
3fb90eb802
@ -452,8 +452,8 @@ void TFCode::Build() {
|
||||
GetTraceString(fn->call_stack()->traces().at(i)) + kGradientSuffix;
|
||||
pre_code_node = pre_code_node->AddChildren(
|
||||
trace, &fn->call_stack()->traces().at(i), kGradientSuffix);
|
||||
const int64 max_stack_trace_allowed_size = fn->call_stack()->traces().size() - 1;
|
||||
if (i == max_stack_trace_allowed_size) {
|
||||
const int64 last_trace = fn->call_stack()->traces().size() - 1;
|
||||
if (i == last_trace) {
|
||||
leaf = pre_code_node;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user