MCPcopy
hub / github.com/ray-project/ray / FuncWrapper

Class FuncWrapper

python/ray/remote_function.py:291–308  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

289 )
290
291 class FuncWrapper:
292 def remote(self, *args, **kwargs):
293 return func_cls._remote(
294 args=args,
295 kwargs=kwargs,
296 serialized_runtime_env_info=serialized_runtime_env_info,
297 **updated_options,
298 )
299
300 @DeveloperAPI
301 def bind(self, *args, **kwargs):
302 """
303 For Ray DAG building that creates static graph from decorated
304 class or functions.
305 """
306 from ray.dag.function_node import FunctionNode
307
308 return FunctionNode(func_cls._function, args, kwargs, updated_options)
309
310 return FuncWrapper()
311

Callers 1

optionsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…