Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion keras_declarative/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ def _build_hypermodel(self, hp):

model.load_weights(
self._get_checkpoint_fname(
history_trial.trial_id, history_trial.best_step
history_trial.trial_id #, history_trial.best_step
)
)
return model
Expand Down
6 changes: 6 additions & 0 deletions keras_declarative/workflows.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@
import numpy as np
import pandas as pd
import tensorflow as tf
try:
physical_devices = tf.config.experimental.list_physical_devices('GPU')
tf.config.experimental.set_memory_growth(physical_devices[0], True)
print('setting Memory Growth (for simultaneous preproc and training OJ)')
except:
print('FAILED: setting Memory Growth (for simultaneous preproc and training OJ)')
import tensorflow_datasets as tfds
import tensorflow_io as tfio

Expand Down