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

Function _remote_method

distributed/rpc/rl/main.py:41–47  ·  view source on GitHub ↗

r""" a helper function to run method on the owner of rref and fetch back the result using RPC

(method, rref, *args, **kwargs)

Source from the content-addressed store, hash-verified

39
40
41def _remote_method(method, rref, *args, **kwargs):
42 r"""
43 a helper function to run method on the owner of rref and fetch back the
44 result using RPC
45 """
46 args = [method, rref] + list(args)
47 return rpc_sync(rref.owner(), _call_method, args=args, kwargs=kwargs)
48
49
50class Policy(nn.Module):

Callers 1

run_episodeMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected