MCPcopy Create free account
hub / github.com/Tencent/digitalhuman / generate_function

Function generate_function

RLVER/code/verl/single_controller/ray/base.py:395–401  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

393 if hasattr(method, MAGIC_ATTR):
394
395 def generate_function(name):
396
397 def func(self, *args, **kwargs):
398 # dispatch to the actual worker
399 return getattr(self.worker_dict[key], name)(*args, **kwargs)
400
401 return func
402
403 func = generate_function(method_name)
404 # pass MAGIC_ATTR for outer worker group

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected