      Variable.
  
      If file doesn't exist and a variable hasn't been set, create the config file. """
      def __init__(self) -> None:
          self._backends: Dict[str, ValidBackends] = {"1": "cpu",
                                                      "2": "directml",
                                                      "3": "nvidia",
                                                      "4": "apple_silicon",
                                                      "5": "rocm"}
          self._valid_backends = list(self._backends.values())
 
</s> remove _TF_VERS: Optional[Tuple[int, int]] = None
ValidBackends = Literal["nvidia", "cpu", "apple_silicon", "directml", "rocm"]
 </s> add _TF_VERS: tuple[int, int] | None = None
ValidBackends = T.Literal["nvidia", "cpu", "apple_silicon", "directml", "rocm"] </s> remove         self._sysfs_paths: List[str] = []
 </s> add         self._sysfs_paths: list[str] = [] </s> remove         self.rocm_version: Tuple[int, ...] = (0, 0, 0)
 </s> add         self.rocm_version: tuple[int, ...] = (0, 0, 0) </s> remove         self.backend: Optional[Literal["nvidia", "apple_silicon",
                                       "directml", "cpu", "rocm"]] = None
 </s> add         self.backend: backend_type | None = None </s> remove         self.tk_vars: Dict[str, Dict[str, Union[tk.BooleanVar,
                                                tk.StringVar,
                                                tk.IntVar,
                                                tk.DoubleVar]]] = {}
 </s> add         self.tk_vars: dict[str, dict[str, tk.BooleanVar | tk.StringVar | tk.IntVar | tk.DoubleVar]
                           ] = {}
        self._backends: dict[str, ValidBackends] = {"1": "cpu",
      Variable.
  
      If file doesn't exist and a variable hasn't been set, create the config file. """
      def __init__(self) -> None:
        self._backends: dict[str, ValidBackends] = {"1": "cpu",
                                                      "2": "directml",
                                                      "3": "nvidia",
                                                      "4": "apple_silicon",
                                                      "5": "rocm"}
          self._valid_backends = list(self._backends.values())
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 
lib/utils.py