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

Method bind

python/ray/dag/class_node.py:107–121  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

105 self._options = options
106
107 def bind(self, *args, **kwargs):
108 other_args_to_resolve = {
109 PARENT_CLASS_NODE_KEY: self._actor,
110 PREV_CLASS_METHOD_CALL_KEY: self._actor._last_call,
111 }
112
113 node = ClassMethodNode(
114 self._method_name,
115 args,
116 kwargs,
117 self._options,
118 other_args_to_resolve=other_args_to_resolve,
119 )
120 self._actor._last_call = node
121 return node
122
123 def __getattr__(self, attr: str):
124 if attr == "remote":

Calls 1

ClassMethodNodeClass · 0.85