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

Function _call_method

distributed/rpc/rl/main.py:34–38  ·  view source on GitHub ↗

r""" a helper function to call a method on the given RRef

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

Source from the content-addressed store, hash-verified

32
33
34def _call_method(method, rref, *args, **kwargs):
35 r"""
36 a helper function to call a method on the given RRef
37 """
38 return method(rref.local_value(), *args, **kwargs)
39
40
41def _remote_method(method, rref, *args, **kwargs):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected