Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
free up executor memory when reassigning new executor
Browse files Browse the repository at this point in the history
  • Loading branch information
Rohit Kumar Srivastava committed Sep 23, 2020
1 parent a6c357a commit 07e65e5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/executor/graph_executor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2077,6 +2077,7 @@ Executor *Executor::Bind(nnvm::Symbol symbol,
&tmp_arg_grad_store, &tmp_grad_req_type, &tmp_aux_states,
verbose);
// Subgraph cannot be recreated from unoptimized symbol
delete exec;
exec = new exec::GraphExecutor(symbol);
}
}
Expand Down

0 comments on commit 07e65e5

Please sign in to comment.