!9854 [Debugger] Loading initial parameter values for multi graph

From: @harsh1995
Reviewed-by: @john_tzanakakis,@wangyue01
Signed-off-by: @wangyue01
pull/9854/MERGE
mindspore-ci-bot 4 years ago committed by Gitee
commit 4cbdece50d

@ -289,6 +289,12 @@ void Debugger::PreExecute(const KernelGraphPtr &graph_ptr, uint32_t graph_sum) {
if (debugger_enabled_) {
if (graph_proto_list_.size()) {
// only send compiled graphs once.
auto dbg_graph_ptr = graph_ptr_;
// use current graph ptr to load parameters
graph_ptr_ = graph_ptr;
LoadParametersAndConst();
// revert graph ptr to original value
graph_ptr_ = dbg_graph_ptr;
SendMultiGraphsAndSuspend(graph_proto_list_, graph_sum);
graph_proto_list_.clear();
} else if (graph_id == rungraph_id_list_.front() && device_target_ == kGPUDevice) {

Loading…
Cancel
Save