Skip to content

Commit

Permalink
delete set_visible_devices (#2168)
Browse files Browse the repository at this point in the history
Signed-off-by: Richard Brown <[email protected]>

Co-authored-by: Eric Kerfoot <[email protected]>
  • Loading branch information
2 people authored and wyli committed May 27, 2021
1 parent ff28c7d commit 7997e68
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions monai/config/deviceconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,6 @@ def print_config(file=sys.stdout):
)


def set_visible_devices(*dev_inds):
os.environ["CUDA_VISIBLE_DEVICES"] = ",".join(map(str, dev_inds))


def _dict_append(in_dict, key, fn):
try:
in_dict[key] = fn() if callable(fn) else fn
Expand Down

0 comments on commit 7997e68

Please sign in to comment.