From 478ebc42b73e30e16389bf27693d93ce3a9c0cb0 Mon Sep 17 00:00:00 2001 From: Helin Wang Date: Thu, 18 May 2017 18:37:08 -0400 Subject: [PATCH] apply clang-format --- paddle/go/cclient/test/main.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/paddle/go/cclient/test/main.c b/paddle/go/cclient/test/main.c index d71a023a6..28e3d03b7 100644 --- a/paddle/go/cclient/test/main.c +++ b/paddle/go/cclient/test/main.c @@ -11,7 +11,7 @@ void panic() { int main() { char addr[] = "localhost:3000"; client c = paddle_new_pserver_client(addr); - retry: +retry: if (paddle_begin_init_params(c, NULL, 0)) { paddle_parameter param; char name_a[] = "param_a"; @@ -39,14 +39,16 @@ int main() { } char content[] = {0x00, 0x11, 0x22}; - paddle_gradient grads[2] = {{"param_a", PADDLE_ELEMENT_TYPE_INT32, content, 3}, {"param_b", PADDLE_ELEMENT_TYPE_FLOAT32, content, 3}}; + paddle_gradient grads[2] = { + {"param_a", PADDLE_ELEMENT_TYPE_INT32, content, 3}, + {"param_b", PADDLE_ELEMENT_TYPE_FLOAT32, content, 3}}; if (!paddle_send_grads(c, grads, 2)) { panic(); } paddle_parameter* params[2] = {NULL, NULL}; - char* names[]={"param_a", "param_b"}; + char* names[] = {"param_a", "param_b"}; if (!paddle_get_params(c, names, params, 2)) { panic(); } -- GitLab