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 694c00b commit 2cb66dbCopy full SHA for 2cb66db
colabdesign/shared/utils.py
@@ -19,7 +19,10 @@ def clear_mem():
19
for obj_name in dir(module):
20
obj = getattr(module, obj_name)
21
if hasattr(obj, "cache_clear"):
22
- obj.cache_clear()
+ try:
23
+ obj.cache_clear()
24
+ except:
25
+ pass
26
gc.collect()
27
28
def update_dict(D, *args, **kwargs):
@@ -116,4 +119,4 @@ def copy_missing(a,b):
116
119
if i not in b:
117
120
b[i] = v
118
121
elif isinstance(v,dict):
- copy_missing(v,b[i])
122
+ copy_missing(v,b[i])
0 commit comments