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

Method update

python/ray/_private/parameter.py:263–275  ·  view source on GitHub ↗

Update the settings according to the keyword arguments. Args: kwargs: The keyword arguments to set corresponding fields.

(self, **kwargs)

Source from the content-addressed store, hash-verified

261 self._system_config["lineage_pinning_enabled"] = True
262
263 def update(self, **kwargs):
264 """Update the settings according to the keyword arguments.
265
266 Args:
267 kwargs: The keyword arguments to set corresponding fields.
268 """
269 for arg in kwargs:
270 if hasattr(self, arg):
271 setattr(self, arg, kwargs[arg])
272 else:
273 raise ValueError(f"Invalid RayParams parameter in update: {arg}")
274
275 self._check_usage()
276
277 def update_if_absent(self, **kwargs):
278 """Update the settings when the target fields are None.

Callers 15

_print_loggersFunction · 0.45
__init__Method · 0.45
start_ray_processFunction · 0.45
flatten_dictFunction · 0.45
_merge_resourcesMethod · 0.45
_get_default_labelsMethod · 0.45

Calls 1

_check_usageMethod · 0.95

Tested by 1