提交 0e71ab29 编写于 作者: H Helin Wang

fix comment

上级 83c852c1
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
#include "libclient.h" #include "libclient.h"
// TODO(helin): fix: gtest using cmake is not working, using this // TODO(helin): Fix: gtest using cmake is not working, using this
// hacky way for now. // hacky way for now.
#define fail() \ #define fail() \
fprintf(stderr, "info: %s:%d: ", __FILE__, __LINE__); \ fprintf(stderr, "info: %s:%d: ", __FILE__, __LINE__); \
...@@ -25,7 +25,7 @@ void getParams(paddle_pserver_client c) { ...@@ -25,7 +25,7 @@ void getParams(paddle_pserver_client c) {
paddle_parameter param_b; paddle_parameter param_b;
char name_a[] = "param_a"; char name_a[] = "param_a";
char name_b[] = "param_b"; char name_b[] = "param_b";
// must pre-allocate the content for parameter to receive. // Must pre-allocate the prameter content before calling paddle_get_params.
unsigned char content_a[2000] = {}; unsigned char content_a[2000] = {};
unsigned char content_b[3000] = {}; unsigned char content_b[3000] = {};
param_a.element_type = PADDLE_ELEMENT_TYPE_FLOAT32; param_a.element_type = PADDLE_ELEMENT_TYPE_FLOAT32;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册