We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7662baa commit 4be6845Copy full SHA for 4be6845
efficientdet/hparams_config.py
@@ -14,7 +14,7 @@
14
# ==============================================================================
15
"""Hparams for model architecture and trainer."""
16
import ast
17
-import collections
+from collections import abc
18
import copy
19
from typing import Any, Dict, Text
20
import six
@@ -145,7 +145,7 @@ def merge_dict_recursive(target, src):
145
"""Recursively merge two nested dictionary."""
146
for k in src.keys():
147
if ((k in target and isinstance(target[k], dict) and
148
- isinstance(src[k], collections.Mapping))):
+ isinstance(src[k], abc.Mapping))):
149
merge_dict_recursive(target[k], src[k])
150
else:
151
target[k] = src[k]
0 commit comments