          self._model.add_history(combined_loss)
          logger.trace("original loss: %s, combined_loss: %s", loss, combined_loss)  # type: ignore
          return combined_loss
  
      def _print_loss(self, loss: T.List[float]) -> None:
          """ Outputs the loss for the current iteration to the console.
  
          Parameters
          ----------
          loss: list
 
</s> remove     def _log_tensorboard(self, loss: T.List[float]) -> None:
 </s> add     def _log_tensorboard(self, loss: list[float]) -> None: </s> remove     def add_history(self, loss: T.List[float]) -> None:
 </s> add     def add_history(self, loss: list[float]) -> None: </s> remove     def __init__(self, labels: List[str], timestamps: np.ndarray, loss: np.ndarray) -> None:
 </s> add     def __init__(self, labels: list[str], timestamps: np.ndarray, loss: np.ndarray) -> None: </s> remove     loss: List[float] = field(default_factory=list)
 </s> add     loss: list[float] = field(default_factory=list) </s> remove         if get_tf_version() > (2, 7):
            # Bug in TF 2.8/2.9/2.10 where batch recording got deleted.
            # ref: https://github.com/keras-team/keras/issues/16173
            with tf.summary.record_if(True), self._tensorboard._train_writer.as_default():  # noqa pylint:disable=protected-access,not-context-manager
                for name, value in logs.items():
                    tf.summary.scalar(
                        "batch_" + name,
                        value,
                        step=self._tensorboard._train_step)  # pylint:disable=protected-access
        else:
            self._tensorboard.on_train_batch_end(self._model.iterations, logs=logs)

    def _collate_and_store_loss(self, loss: T.List[float]) -> T.List[float]:
 </s> add         # Bug in TF 2.8/2.9/2.10 where batch recording got deleted.
        # ref: https://github.com/keras-team/keras/issues/16173
        with tf.summary.record_if(True), self._tensorboard._train_writer.as_default():  # noqa:E501  pylint:disable=protected-access,not-context-manager
            for name, value in logs.items():
                tf.summary.scalar(
                    "batch_" + name,
                    value,
                    step=self._tensorboard._train_step)  # pylint:disable=protected-access
        # TODO revert this code if fixed in tensorflow
        # self._tensorboard.on_train_batch_end(self._model.iterations, logs=logs)

    def _collate_and_store_loss(self, loss: list[float]) -> list[float]:
    def _print_loss(self, loss: list[float]) -> None:
          self._model.add_history(combined_loss)
          logger.trace("original loss: %s, combined_loss: %s", loss, combined_loss)  # type: ignore
          return combined_loss
  
    def _print_loss(self, loss: list[float]) -> None:
          """ Outputs the loss for the current iteration to the console.
  
          Parameters
          ----------
          loss: list
keep keep keep keep replace keep keep keep keep keep
 Rebase code (#1326)

* Remove tensorflow_probability requirement

* setup.py - fix progress bars

* requirements.txt: Remove pre python 3.9 packages

* update apple requirements.txt

* update INSTALL.md

* Remove python<3.9 code

* setup.py - fix Windows Installer

* typing: python3.9 compliant

* Update pytest and readthedocs python versions

* typing fixes

* Python Version updates
  - Reduce max version to 3.10
  - Default to 3.10 in installers
  - Remove incompatible 3.11 tests

* Update dependencies

* Downgrade imageio dep for Windows

* typing: merge optional unions and fixes

* Updates
  - min python version 3.10
  - typing to python 3.10 spec
  - remove pre-tf2.10 code
  - Add conda tests

* train: re-enable optimizer saving

* Update dockerfiles

* Update setup.py
  - Apple Conda deps to setup.py
  - Better Cuda + dependency handling

* bugfix: Patch logging to prevent Autograph errors

* Update dockerfiles

* Setup.py - Setup.py - stdout to utf-8

* Add more OSes to github Actions

* suppress mac-os end to end test 
plugins/train/trainer/_base.py