memory increasing during training
when i train a model on GPU, the Memory is increasing. the dataiter i write following the fcn-xs
@li-haoran Could you help provide a small example?
https://github.com/li-haoran/mxnet/blob/master/example/pose/cpmdata.py here is my data iter https://github.com/li-haoran/mxnet/blob/master/example/pose/solver.py this is solver
https://github.com/li-haoran/mxnet/blob/master/example/pose/solver.py#L80 you need to pass the initial executor as shared_mem here
There is usually no need to write a solver now. Try mx.module.bucketing_module
@piiswrong i change the executor as share_mem
self.exector = self.symbol.bind(self.ctx, self.arg_params, args_grad=self.grad_params, grad_req=grad_req, aux_states=self.aux_params, shared_exec=exu)
but the memory also increase each batch. i don't known why?but the speed is faster than before.
have a look at the bucketing example
.
This issue is closed due to lack of activity in the last 90 days. Feel free to reopen if this is still an active issue. Thanks!