提交 00e2dcf3 编写于 作者: H Helin Wang

Fix according to comments

上级 32c92640
......@@ -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(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册