mirror of
https://github.com/wassname/ray.git
synced 2026-08-02 13:01:01 +08:00
[RLlib] from_config util method for framework agnostic components; start moving RLlib tests into Bazel. (#6865)
This commit is contained in:
@@ -137,7 +137,14 @@ class warn_if_slow:
|
||||
|
||||
|
||||
def merge_dicts(d1, d2):
|
||||
"""Returns a new dict that is d1 and d2 deep merged."""
|
||||
"""
|
||||
Args:
|
||||
d1 (dict): Dict 1.
|
||||
d2 (dict): Dict 2.
|
||||
|
||||
Returns:
|
||||
dict: A new dict that is d1 and d2 deep merged.
|
||||
"""
|
||||
merged = copy.deepcopy(d1)
|
||||
deep_update(merged, d2, True, [])
|
||||
return merged
|
||||
|
||||
Reference in New Issue
Block a user