@@ -55,7 +55,7 @@ The trainer select process is encapsulated in the C API function:
```c
int paddle_begin_init_params(paddle_pserver_client* client, const char* config_proto);
```
The selected trainer's call to `paddle_begin_init_params` will return with 1, and the other trainers' call to `paddle_begin_init_params` will block until initialization is done, and return 0. As illustrated below:
The selected trainer's call to `paddle_begin_init_params` will return with 1, and the other trainers' call to `paddle_begin_init_params` will return 0. `paddle_get_params` will be blocked until initialization is completed. As illustrated below:
<p>The selected trainer’s call to <codeclass="docutils literal"><spanclass="pre">paddle_begin_init_params</span></code> will return with 1, and the other trainers’ call to <codeclass="docutils literal"><spanclass="pre">paddle_begin_init_params</span></code> will block until initialization is done, and return 0. As illustrated below:</p>
<p>The selected trainer’s call to <codeclass="docutils literal"><spanclass="pre">paddle_begin_init_params</span></code> will return with 1, and the other trainers’ call to <codeclass="docutils literal"><spanclass="pre">paddle_begin_init_params</span></code> will return 0. <codeclass="docutils literal"><spanclass="pre">paddle_get_params</span></code> will be blocked until initialization is completed. As illustrated below:</p>
<p><imgsrc="./src/pserver_init.png"></p>
</div>
</div>
...
...
@@ -259,16 +259,13 @@ name:sparse-n-1
<spanclass="cm"> *</span>
<spanclass="cm"> * paddle_begin_init_params will be called from multiple trainers,</span>
<spanclass="cm"> * only one trainer will be selected to initialize the parameters on</span>
<spanclass="cm"> * parameter servers. Other trainers will be blocked until the</span>
<spanclass="cm"> * initialization is done, and they need to get the initialized</span>
<spanclass="cm"> * parameter servers. Other trainers need to get the initialized</span>
<spanclass="cm"> * parameters from parameter servers using @paddle_get_params.</span>
<spanclass="cm"> *</span>
<spanclass="cm"> * @param pserver_config_proto serialized parameter server configuration in</span>
@@ -55,7 +55,7 @@ The trainer select process is encapsulated in the C API function:
```c
int paddle_begin_init_params(paddle_pserver_client* client, const char* config_proto);
```
The selected trainer's call to `paddle_begin_init_params` will return with 1, and the other trainers' call to `paddle_begin_init_params` will block until initialization is done, and return 0. As illustrated below:
The selected trainer's call to `paddle_begin_init_params` will return with 1, and the other trainers' call to `paddle_begin_init_params` will return 0. `paddle_get_params` will be blocked until initialization is completed. As illustrated below:
<p>The selected trainer’s call to <codeclass="docutils literal"><spanclass="pre">paddle_begin_init_params</span></code> will return with 1, and the other trainers’ call to <codeclass="docutils literal"><spanclass="pre">paddle_begin_init_params</span></code> will block until initialization is done, and return 0. As illustrated below:</p>
<p>The selected trainer’s call to <codeclass="docutils literal"><spanclass="pre">paddle_begin_init_params</span></code> will return with 1, and the other trainers’ call to <codeclass="docutils literal"><spanclass="pre">paddle_begin_init_params</span></code> will return 0. <codeclass="docutils literal"><spanclass="pre">paddle_get_params</span></code> will be blocked until initialization is completed. As illustrated below:</p>
<p><imgsrc="./src/pserver_init.png"></p>
</div>
</div>
...
...
@@ -266,16 +266,13 @@ name:sparse-n-1
<spanclass="cm"> *</span>
<spanclass="cm"> * paddle_begin_init_params will be called from multiple trainers,</span>
<spanclass="cm"> * only one trainer will be selected to initialize the parameters on</span>
<spanclass="cm"> * parameter servers. Other trainers will be blocked until the</span>
<spanclass="cm"> * initialization is done, and they need to get the initialized</span>
<spanclass="cm"> * parameter servers. Other trainers need to get the initialized</span>
<spanclass="cm"> * parameters from parameter servers using @paddle_get_params.</span>
<spanclass="cm"> *</span>
<spanclass="cm"> * @param pserver_config_proto serialized parameter server configuration in</span>