Defined in tensorflow/python/keras/

Returns the TF session to be used by the backend.

If a default TensorFlow session is available, we will return it.

Else, we will return the global Keras session.

If no global Keras session exists at this point: we will create a new global session.

Note that you can manually set the global session via K.set_session(sess).


A TensorFlow session.