提交 ff699f9b 编写于 作者: T Travis CI

Deploy to GitHub Pages: 0c7111e3

上级 42fdd3fa
...@@ -103,7 +103,7 @@ t.transpile(optimize_ops, params_grads, pservers=pserver_endpoints, trainers=2) ...@@ -103,7 +103,7 @@ t.transpile(optimize_ops, params_grads, pservers=pserver_endpoints, trainers=2)
# in pserver, run this # in pserver, run this
exe.run(fluid.default_startup_program()) exe.run(fluid.default_startup_program())
#current_endpoint here means current pserver IP:PORT you wish to run on #current_endpoint here means current pserver IP:PORT you wish to run on
exe.run(t.get_pserver_program(current_endpoint, optimize_ops)) exe.run(t.get_pserver_program(current_endpoint))
# in trainer, run this # in trainer, run this
... # define data reader ... # define data reader
......
...@@ -301,7 +301,7 @@ ...@@ -301,7 +301,7 @@
<span class="c1"># in pserver, run this</span> <span class="c1"># in pserver, run this</span>
<span class="n">exe</span><span class="o">.</span><span class="n">run</span><span class="p">(</span><span class="n">fluid</span><span class="o">.</span><span class="n">default_startup_program</span><span class="p">())</span> <span class="n">exe</span><span class="o">.</span><span class="n">run</span><span class="p">(</span><span class="n">fluid</span><span class="o">.</span><span class="n">default_startup_program</span><span class="p">())</span>
<span class="c1">#current_endpoint here means current pserver IP:PORT you wish to run on</span> <span class="c1">#current_endpoint here means current pserver IP:PORT you wish to run on</span>
<span class="n">exe</span><span class="o">.</span><span class="n">run</span><span class="p">(</span><span class="n">t</span><span class="o">.</span><span class="n">get_pserver_program</span><span class="p">(</span><span class="n">current_endpoint</span><span class="p">,</span> <span class="n">optimize_ops</span><span class="p">))</span> <span class="n">exe</span><span class="o">.</span><span class="n">run</span><span class="p">(</span><span class="n">t</span><span class="o">.</span><span class="n">get_pserver_program</span><span class="p">(</span><span class="n">current_endpoint</span><span class="p">))</span>
<span class="c1"># in trainer, run this</span> <span class="c1"># in trainer, run this</span>
<span class="o">...</span> <span class="c1"># define data reader</span> <span class="o">...</span> <span class="c1"># define data reader</span>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册