The first error I got looks like:
File "/anaconda/envs/vampire/lib/python3.6/site-packages/keras/backend/tensorflow_backend.py", line 379, in get_session
'`get_session` is not available '
RuntimeError: `get_session` is not available when using TensorFlow 2.0.
Then when I replace session = K.get_session() with session = tf.compat.v1.keras.backend.get_session(), I got another error saying:
layer.kernel.initializer.run(session=session)
AttributeError: 'NoneType' object has no attribute 'run'
I'm running into an issue when trying to replicate the following demo code:
Then when I replace session = K.get_session() with session = tf.compat.v1.keras.backend.get_session(), I got another error saying: