  class CudaCheck():  # pylint:disable=too-few-public-methods
      """ Find the location of system installed Cuda and cuDNN on Windows and Linux. """
  
      def __init__(self) -> None:
          self.cuda_path: Optional[str] = None
          self.cuda_version: Optional[str] = None
          self.cudnn_version: Optional[str] = None
  
          self._os: str = platform.system().lower()
          self._cuda_keys: List[str] = [key
                                        for key in os.environ
                                        if key.lower().startswith("cuda_path_v")]
 
</s> remove         self._cuda_keys: List[str] = [key
 </s> add         self._cuda_keys: list[str] = [key </s> remove         self._cudnn_header_files: List[str] = ["cudnn_version.h", "cudnn.h"]
 </s> add         self._cudnn_header_files: list[str] = ["cudnn_version.h", "cudnn.h"] </s> remove         self.rocm_version: Tuple[int, ...] = (0, 0, 0)
 </s> add         self.rocm_version: tuple[int, ...] = (0, 0, 0) </s> remove         self._pathoutput: Optional[str] = None
 </s> add         self._pathoutput: str | None = None </s> remove                  git_model_id: Optional[int] = None,
                 model_filename: Optional[str] = None,
                 configfile: Optional[str] = None,
 </s> add                  git_model_id: int | None = None,
                 model_filename: str | None = None,
                 configfile: str | None = None,
        self.cuda_path: str | None = None
        self.cuda_version: str | None = None
        self.cudnn_version: str | None = None
  class CudaCheck():  # pylint:disable=too-few-public-methods
      """ Find the location of system installed Cuda and cuDNN on Windows and Linux. """
  
      def __init__(self) -> None:
        self.cuda_path: str | None = None
        self.cuda_version: str | None = None
        self.cudnn_version: str | None = None
        self.cuda_path: str | None = None
        self.cuda_version: str | None = None
        self.cudnn_version: str | None = None
        self.cuda_path: str | None = None
        self.cuda_version: str | None = None
        self.cudnn_version: str | None = None
  
          self._os: str = platform.system().lower()
          self._cuda_keys: List[str] = [key
                                        for key in os.environ
                                        if key.lower().startswith("cuda_path_v")]
keep keep keep keep replace replace 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 
setup.py