This patch fixes bug that gradient clipping was not applied correctly
when optimization is on.
**Self evaluation:**
1. Build test: [X]Passed [ ]Failed [ ]Skipped
2. Run test: [X]Passed [ ]Failed [ ]Skipped
Signed-off-by: Jihoon Lee <jhoon.it.lee@samsung.com>
std::max(max_exec_order, std::get<1>(ln->getExecutionOrder()));
#endif
} else {
+ /// FIXME below code need explanation
+ // max_exec_order =
+ // std::max(max_exec_order, std::get<0>(ln->getExecutionOrder()));
max_exec_order =
- std::max(max_exec_order, std::get<0>(ln->getExecutionOrder()));
+ std::max(max_exec_order, std::get<2>(ln->getExecutionOrder()));
}
}
}