class _TensorFlowBackend(Backend):
def __init__(self):
if tf is not None:
self._session = tf.Session()
super().__init__("TensorFlow")
@staticmethod
def is_available():
After Change
if self.is_available():
self._session = kwargs.get("session")
if self._session is None:
self._own_session = self._session = tf.Session()
super().__init__("TensorFlow")
def __del__(self):
if self._own_session is not None: