                                             timestamps=zlib.compress(timestamps),
                                             timestamps_shape=timestamps.shape)
  
      def _get_latest_live(self):
          """ Obtain the latest event logs for live training data and add to the cache """
          if self._training_iterator is None:
              training_session_id = self.session_ids[-1]
              filename = self._log_filenames[training_session_id]
 
</s> remove _old_factory = logging.getLogRecordFactory()
 </s> add _OLD_FACTORY = logging.getLogRecordFactory() </s> remove         loss = np.array(loss, dtype="float32")
        timestamps = np.array(timestamps, dtype="float64")
 </s> add         try:
            loss = np.array(loss, dtype="float32")
        except ValueError as err:
            # When collecting live loss, the current batch may not be completely populated
            # Carry over the last loss to the next collection
            if "setting an array element with a sequence" in str(err):
                carry_over = loss[-1]
                logger.debug("Carrying over data: (carry_over: %s, new loss: %s)",
                             carry_over, loss[:-1])
                loss = np.array(loss[:-1], dtype="float32")
            else:
                raise </s> remove         in Conda """
 </s> add         in Conda.

        This was used whilst Tensorflow 2.2 was not available for Windows in Conda. It is kept
        here in case it is required again in the future.
        """
        if carry_over:
            self._cache[session_id]["carry_over"] = carry_over
                                             timestamps=zlib.compress(timestamps),
                                             timestamps_shape=timestamps.shape)
        if carry_over:
            self._cache[session_id]["carry_over"] = carry_over
  
      def _get_latest_live(self):
          """ Obtain the latest event logs for live training data and add to the cache """
          if self._training_iterator is None:
              training_session_id = self.session_ids[-1]
              filename = self._log_filenames[training_session_id]
keep add keep keep keep keep keep keep
 Update to TF2.3 (#1100)

* Minimum requirements to tf2.3.
  - Handle upgrades for Windows users with tf2.2 installed by Pip
  - Handle windows upgrade from pip tf2.2
  - Explicitly install Cuda for Conda installs

* Update tensorflow errors api reference
* Suppress AutoGraph warning messages
* Update GUI Stats to work with tf2.3
* Fix live graph for tf2.3
* DSSIMObjective - autoGraph bugfix
* Update Travis test 
lib/gui/stats.py