[RLlib] from_config util method for framework agnostic components; start moving RLlib tests into Bazel. (#6865)

This commit is contained in:
Sven Mika
2020-01-22 17:02:58 -08:00
committed by Eric Liang
parent 5f527816fe
commit ae9a3a2237
14 changed files with 430 additions and 21 deletions
+8 -1
View File
@@ -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