提交 c5e8e27b 编写于 作者: D dongzhihong

"change empty gradient to error"

上级 44e39246
package pserver
import (
"errors"
"hash/fnv"
"sort"
"time"
......@@ -124,8 +125,7 @@ func (c *Client) FinishInitParams() error {
// parameters.
func (c *Client) SendGrads(grads []Gradient) error {
if len(grads) == 0 {
log.Info("Send Empty Gradient")
return nil
return errors.New("no gradient received")
}
errCh := make(chan error, len(grads))
for _, g := range grads {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册