MCPcopy Index your code
hub / github.com/ray-project/ray / options

Method options

python/ray/actor.py:919–940  ·  view source on GitHub ↗

Convenience method for executing an actor method call with options. Same arguments as func._remote(), but returns a wrapped function that a non-underscore .remote() can be called on. Examples: # The following two calls are equivalent. >>> actor.my_me

(self, **options)

Source from the content-addressed store, hash-verified

917 return self._remote(args, kwargs)
918
919 def options(self, **options):
920 """Convenience method for executing an actor method call with options.
921
922 Same arguments as func._remote(), but returns a wrapped function
923 that a non-underscore .remote() can be called on.
924
925 Examples:
926 # The following two calls are equivalent.
927 >>> actor.my_method._remote(args=[x, y], name="foo", num_returns=2)
928 >>> actor.my_method.options(name="foo", num_returns=2).remote(x, y)
929 """
930
931 tensor_transport = options.get("tensor_transport", None)
932 if tensor_transport is not None:
933 from ray.experimental.rdt.util import (
934 normalize_and_validate_tensor_transport,
935 )
936
937 tensor_transport = normalize_and_validate_tensor_transport(tensor_transport)
938 options["tensor_transport"] = tensor_transport
939
940 return _ActorMethodOptionsWrapper(self, options)
941
942 @wrap_auto_init
943 @_tracing_actor_method_invocation

Callers

nothing calls this directly

Calls 3

getMethod · 0.65

Tested by

no test coverage detected