提交 c093a243 编写于 作者: Q qiaolongfei

clang format check

上级 ebba2b13
...@@ -11,8 +11,10 @@ ...@@ -11,8 +11,10 @@
void sendGrads(paddle_pserver_client c) { void sendGrads(paddle_pserver_client c) {
unsigned char grad_a[2000] = {2}; unsigned char grad_a[2000] = {2};
unsigned char grad_b[3000] = {3}; unsigned char grad_b[3000] = {3};
paddle_gradient grad1 = {"param_a", PADDLE_ELEMENT_TYPE_FLOAT32, grad_a, 2000}; paddle_gradient grad1 = {
paddle_gradient grad2 = {"param_b", PADDLE_ELEMENT_TYPE_FLOAT32, grad_b, 3000}; "param_a", PADDLE_ELEMENT_TYPE_FLOAT32, grad_a, 2000};
paddle_gradient grad2 = {
"param_b", PADDLE_ELEMENT_TYPE_FLOAT32, grad_b, 3000};
paddle_gradient* grads[2] = {&grad1, &grad2}; paddle_gradient* grads[2] = {&grad1, &grad2};
if (paddle_send_grads(c, grads, 2)) { if (paddle_send_grads(c, grads, 2)) {
fail(); fail();
...@@ -76,7 +78,8 @@ retry: ...@@ -76,7 +78,8 @@ retry:
} }
} }
for (int i = 0; i < 100; i++) { int i;
for (i = 0; i < 100; i++) {
sendGrads(c); sendGrads(c);
getParams(c); getParams(c);
} }
......
...@@ -60,8 +60,7 @@ void NewRemoteParameterUpdater::init( ...@@ -60,8 +60,7 @@ void NewRemoteParameterUpdater::init(
paddle_finish_init_params(parameterClient_); paddle_finish_init_params(parameterClient_);
LOG(INFO) << "paddle_begin_init_params done"; LOG(INFO) << "paddle_begin_init_params done";
} else { } else {
paddle_get_params( paddle_get_params(parameterClient_, newParameters_, parameterSize());
parameterClient_, newParameters_, parameterSize());
} }
LOG(INFO) << "NewRemoteParameterUpdater initialized"; LOG(INFO) << "NewRemoteParameterUpdater initialized";
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册