seekFire opened a new issue #19499:
URL: https://github.com/apache/incubator-mxnet/issues/19499
## Description
I set weight decay in the key 'wd' of the dict "optimizer_params" as follows:
optimizer_params={'learning_rate': lr, 'momentum': momentum,
'lr_scheduler': scheduler, 'wd':
weight_decay}
the value of "weight_decay" is 1e-4, but the error message will be located
on the line:
`trainer.step(batch_size=batchsize)`
### Error Message
The error message is as follows:
File
"/home/bst/anaconda2/envs/Python3/lib/python3.7/site-packages/mxnet/optimizer/optimizer.py",
line 487, in _get_wds
wds[i] *= self.param_dict[index].wd_mult
TypeError: can't multiply sequence by non-int of type 'float'
## What have you tried to solve it?
When I get rid of the keyword 'wd' of dict "optimizer_params", the error
above will not occurs, but new error will occurs in logging stage:
```
logger.info("Training: [epoch: %d, steps: %d, learning_rate: %.2e,
batch_loss: %.4f, batch_time: %.2fs]"
% (i, step_num, trainer.learning_rate,
batch_loss.mean().asscalar(), cost_batch))
```
The new error message is as follow:
mxnet.base.MXNetError: Traceback (most recent call last):
File "src/storage/./pooled_storage_manager.h", line 161
MXNetError: cudaMalloc retry failed: out of memory
## Environment
Python3.7
mxnet-cu102==1.7.0
So could you please help me with these questions?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]