HashName

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

Hash variable names to several endpoints using python “hash()” function.

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 HashName 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.