Skip to content

Commit

Permalink
support gpu training
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdrydew committed May 8, 2022
1 parent 89d6d2e commit b8f5cab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cuda_gpu_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ def setup_gpu(gpu_num=None):
tf.config.experimental.set_memory_growth(gpu, True)

logical_devices = tf.config.experimental.list_logical_devices('GPU')
assert len(logical_devices) > 0, "Not enough GPU hardware devices available"
assert len(logical_devices) > 0 or gpu_num == "", "Not enough GPU hardware devices available"

0 comments on commit b8f5cab

Please sign in to comment.