diff --git a/paddle/go/pserver/optimizer.go b/paddle/go/pserver/optimizer.go index 8c6450bca0bd62290020c2ceb20b9f99770e6103..64bdefe660aaba7f53b5f3b6ee1cb9c0484baedb 100644 --- a/paddle/go/pserver/optimizer.go +++ b/paddle/go/pserver/optimizer.go @@ -38,7 +38,7 @@ func (o *optimizer) UpdateParameter(p Parameter, g Gradient) error { r := C.paddle_update_parameter(o.opt, unsafe.Pointer(&p.Content[0]), C.paddle_element_type(p.ElementType), unsafe.Pointer(&g.Content[0]), C.int(len(g.Content))) if r != 0 { - return fmt.Errorf("optimier returned error code: %d", r) + return fmt.Errorf("optimizer update returned error code: %d", r) } return nil }