提交 44e39246 编写于 作者: D dongzhihong

"fix client send empty gradients bug"

上级 47a3d453
......@@ -123,6 +123,10 @@ func (c *Client) FinishInitParams() error {
// SendGrads sends gradients to parameter servers for updating
// parameters.
func (c *Client) SendGrads(grads []Gradient) error {
if len(grads) == 0 {
log.Info("Send Empty Gradient")
return nil
}
errCh := make(chan error, len(grads))
for _, g := range grads {
go func(g Gradient) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册