MCPcopy Create free account
hub / github.com/pytorch/examples / remote_method

Function remote_method

distributed/rpc/parameter_server/rpc_parameter_server.py:79–81  ·  view source on GitHub ↗
(method, rref, *args, **kwargs)

Source from the content-addressed store, hash-verified

77# back.
78
79def remote_method(method, rref, *args, **kwargs):
80 args = [method, rref] + list(args)
81 return rpc.rpc_sync(rref.owner(), call_method, args=args, kwargs=kwargs)
82
83# --------- Parameter Server --------------------
84class ParameterServer(nn.Module):

Callers 3

forwardMethod · 0.85
run_training_loopFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected