Skip to content

Commit

Permalink
minor edits
Browse files Browse the repository at this point in the history
  • Loading branch information
sokrypton authored Dec 6, 2022
1 parent e50162c commit 1ff12e2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion colabdesign/shared/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ def clear_mem():

# clear ram (CPU)
# https://github.com/google/jax/issues/10828
for module_name, module in sys.modules.items():
modules = {k:v for k,v in sys.modules.items()}
for module_name, module in modules.items():
if module_name.startswith("jax"):
if module_name not in ["jax.interpreters.partial_eval"]:
for obj_name in dir(module):
Expand Down

0 comments on commit 1ff12e2

Please sign in to comment.