From 4808e22e04c2448f6c65933197716a9bbb037766 Mon Sep 17 00:00:00 2001 From: Helin Wang Date: Wed, 17 May 2017 20:15:50 -0400 Subject: [PATCH] fix typo --- paddle/go/pserver/optimizer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddle/go/pserver/optimizer.go b/paddle/go/pserver/optimizer.go index 8c6450bca0b..64bdefe660a 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 } -- GitLab