Attempting to do the following:
import tensorflow as tf
from keras.models import load_model, Model
from keras import backend as K
sess = tf.compat.v1.Session()
K.set_session(sess)
When I run this in Google Colab I get:
RuntimeError: `set_session` is not available when using TensorFlow 2.0.
Does anyone know how to fix this?