Skip to content

Commit

Permalink
Fix according to comments
Browse files Browse the repository at this point in the history
  • Loading branch information
helinwang committed Oct 26, 2017
1 parent 32c9264 commit 00e2dcf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions go/pserver/optimizer.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ func newOptimizer(paramWithConfigs ParameterWithConfig, State []byte) *optimizer
var cptr (*C.uchar)
if len(c) > 0 {
cptr = (*C.uchar)(&c[0])
} else {
log.Error("empty config", "param name", paramWithConfigs.Param.Name)
}
o.config = c
o.opt = C.paddle_create_optimizer(
Expand Down

0 comments on commit 00e2dcf

Please sign in to comment.