RoundRobin

api_attr

declarative programming (static graph)

class paddle.fluid.transpiler.RoundRobin(pserver_endpoints)[source]

Distribute variables to several endpoints using RondRobin<https://en.wikipedia.org/wiki/Round-robin_scheduling> method.

Parameters

pserver_endpoints (list) – list of endpoint(ip:port).

Examples


pserver_endpoints = [“127.0.0.1:6007”, “127.0.0.1:6008”] vars = [“var1”,”var2”,”var3”,”var4”,”var5”]

rr = RoundRobin(pserver_endpoints) rr.dispatch(vars)

dispatch(varlist)

use RoundRobin method to dispatch variables with each parameter server. :param varlist: a list of Variables :type varlist: list

reset()

reset the step counter, set it zero.