mirror of
https://github.com/clearml/clearml
synced 2025-01-31 09:07:00 +00:00
Fix keras_tuner_cifar example raises DeprecationWarning and ValueError
This commit is contained in:
parent
157df5dad3
commit
51f512889f
@ -1,6 +1,6 @@
|
||||
"""Keras Tuner CIFAR10 example for the TensorFlow blog post."""
|
||||
|
||||
import kerastuner as kt
|
||||
import keras_tuner as kt
|
||||
import tensorflow as tf
|
||||
import tensorflow_datasets as tfds
|
||||
from clearml.external.kerastuner import ClearmlTunerLogger
|
||||
@ -9,6 +9,7 @@ from clearml import Task
|
||||
|
||||
physical_devices = tf.config.list_physical_devices('GPU')
|
||||
if physical_devices:
|
||||
tf.config.experimental.set_visible_devices(physical_devices[0], 'GPU')
|
||||
tf.config.experimental.set_memory_growth(physical_devices[0], True)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user