diff --git a/go/pserver/optimizer.go b/go/pserver/optimizer.go index 1603850736f582d4b77d54be1d7edb46547b65d2..6d28cad25a79d713dc06b72f96087a6b723453cd 100644 --- a/go/pserver/optimizer.go +++ b/go/pserver/optimizer.go @@ -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(