use tf1.compat mode for keras

refactoring-2024-08-merged^2
cneud 9 months ago
parent 5fcfe61afc
commit 9d24150031

@ -1,7 +1,7 @@
import os import os
import sys import sys
import tensorflow as tf import tensorflow as tf
from keras.backend.tensorflow_backend import set_session from tensorflow.compat.v1.keras.backend import set_session
import keras, warnings import keras, warnings
from keras.optimizers import * from keras.optimizers import *
from sacred import Experiment from sacred import Experiment

Loading…
Cancel
Save