          self._is_initialized = False
          self._initialize()
  
          self._device_count: int = self._get_device_count()
          self._active_devices: List[int] = self._get_active_devices()
          self._handles: list = self._get_handles()
          self._driver: str = self._get_driver()
          self._device_names: List[str] = self._get_device_names()
          self._vram: List[int] = self._get_vram()
          self._vram_free: List[int] = self._get_free_vram()
 
</s> remove         self._device_names: List[str] = self._get_device_names()
        self._vram: List[int] = self._get_vram()
        self._vram_free: List[int] = self._get_free_vram()
 </s> add         self._device_names: list[str] = self._get_device_names()
        self._vram: list[int] = self._get_vram()
        self._vram_free: list[int] = self._get_free_vram() </s> remove         vram: List[int] = []
 </s> add         vram: list[int] = [] </s> remove         self._loss_functions: List[compile_utils.LossesContainer] = []
        self._loss_weights: List[float] = []
        self._mask_channels: List[int] = []
 </s> add         self._loss_functions: list[compile_utils.LossesContainer] = []
        self._loss_weights: list[float] = []
        self._mask_channels: list[int] = [] </s> remove                  git_model_id: Optional[int] = None,
                 model_filename: Optional[Union[str, List[str]]] = None,
                 exclude_gpus: Optional[List[int]] = None,
                 configfile: Optional[str] = None,
 </s> add                  git_model_id: int | None = None,
                 model_filename: str | list[str] | None = None,
                 exclude_gpus: list[int] | None = None,
                 configfile: str | None = None, </s> remove _EXCLUDE_DEVICES: List[int] = []
 </s> add _EXCLUDE_DEVICES: list[int] = []
        self._active_devices: list[int] = self._get_active_devices()
          self._is_initialized = False
          self._initialize()
  
          self._device_count: int = self._get_device_count()
        self._active_devices: list[int] = self._get_active_devices()
          self._handles: list = self._get_handles()
          self._driver: str = self._get_driver()
          self._device_names: List[str] = self._get_device_names()
          self._vram: List[int] = self._get_vram()
          self._vram_free: List[int] = self._get_free_vram()
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/gpu_stats/_base.py