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.
tensorflow
1 parent 193253c commit 0be8d15Copy full SHA for 0be8d15
clip_benchmark/datasets/tfds.py
@@ -9,8 +9,11 @@ def download_tfds_dataset(name, data_dir=None):
9
builder.download_and_prepare()
10
11
def disable_gpus_on_tensorflow():
12
- import tensorflow as tf
13
- tf.config.set_visible_devices([], 'GPU')
+ try:
+ import tensorflow as tf
14
+ tf.config.set_visible_devices([], 'GPU')
15
+ except ImportError:
16
+ pass
17
18
class VTABIterableDataset(torch.utils.data.IterableDataset):
19
0 commit comments