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

Function call_method

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

Source from the content-addressed store, hash-verified

66# RRef. Other args are passed in as arguments to the function called.
67# Useful for calling instance methods.
68def call_method(method, rref, *args, **kwargs):
69 return method(rref.local_value(), *args, **kwargs)
70
71# Given an RRef, return the result of calling the passed in method on the value
72# held by the RRef. This call is done on the remote node that owns

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected