提交 cc487c09 编写于 作者: D dzhwinter

"fix typo delete"

上级 1f217f0a
......@@ -121,7 +121,14 @@ func paddle_begin_init_params(client C.paddle_pserver_client) C.int {
//export paddle_init_param
func paddle_init_param(client C.paddle_pserver_client, param C.paddle_parameter, param_config unsafe.Pointer, config_len C.int) C.int {
et
et := pserver.ElementType(param.element_type)
name := C.GoString(param.name)
pc := pserver.ParameterWithConfig{
Param: pserver.Parameter{Name: name, ElementType: et, Content: param.content, Length: para.content_len},
Config: cArrayToSlice(param_config, int(config_len)),
}
c := get(client)
err := c.InitParam(pc)
if err != nil {
if err.Error() == pserver.AlreadyInitialized {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册