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

Method get_node_id

python/ray/tests/test_channel.py:1135–1136  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1133 @ray.remote(num_cpus=1)
1134 class Actor:
1135 def get_node_id(self):
1136 return ray.get_runtime_context().get_node_id()
1137
1138 def read(self, channel, val):
1139 assert channel.read() == val

Callers 15

test_driver_processMethod · 0.45
fMethod · 0.45
fMethod · 0.45
__init__Method · 0.45
get_actor_node_idFunction · 0.45
create_driver_actorFunction · 0.45
get_node_idFunction · 0.45

Calls 1

get_runtime_contextMethod · 0.80

Tested by

no test coverage detected