              # Remove the version of tensorflow in requirements file and add the correct version
              # that corresponds to the installed Cuda/cuDNN versions
              self.required_packages = [pkg for pkg in self.required_packages
                                        if not pkg.startswith("tensorflow-gpu")]
              tf_ver = "tensorflow-gpu{}".format(tf_ver)
              self.required_packages.append(tf_ver)
              return
  
          self.output.warning(
              "The minimum Tensorflow requirement is 2.3 \n"
 
</s> remove                 pkg = "{}{}".format(pkg, ",".join("".join(spec) for spec in version))
 </s> add                 pkg = f"{pkg}{','.join(''.join(spec) for spec in version)}" </s> remove             msg = ("The minimum supported Tensorflow is version {} but you have version {} "
                   "installed. Please upgrade Tensorflow.".format(min_ver, tf_ver))
 </s> add             msg = (f"The minimum supported Tensorflow is version {min_ver} but you have version "
                   f"{tf_ver} installed. Please upgrade Tensorflow.") </s> remove         tf_ver = float(".".join(tf.__version__.split(".")[:2]))  # pylint:disable=no-member
 </s> add         tf_ver = get_tf_version() </s> remove             "CUDA Version: {}\r\n"
            "cuDNN Version: {}\r\n"
 </s> add             f"CUDA Version: {self.cuda_version}\r\n"
            f"cuDNN Version: {self.cudnn_version}\r\n" </s> remove             msg = ("The maximum supported Tensorflow is version {} but you have version {} "
                   "installed. Please downgrade Tensorflow.".format(max_ver, tf_ver))
 </s> add             msg = (f"The maximum supported Tensorflow is version {max_ver} but you have version "
                   f"{tf_ver} installed. Please downgrade Tensorflow.")
            tf_ver = f"tensorflow-gpu{tf_ver}"
              # Remove the version of tensorflow in requirements file and add the correct version
              # that corresponds to the installed Cuda/cuDNN versions
              self.required_packages = [pkg for pkg in self.required_packages
                                        if not pkg.startswith("tensorflow-gpu")]
            tf_ver = f"tensorflow-gpu{tf_ver}"
              self.required_packages.append(tf_ver)
              return
  
          self.output.warning(
              "The minimum Tensorflow requirement is 2.3 \n"
keep keep keep keep replace keep keep keep keep keep
 Update code to support Tensorflow versions up to 2.8 (#1213)

* Update maximum tf version in setup + requirements

* - bump max version of tf version in launcher
- standardise tf version check

* update keras get_custom_objects  for tf>2.6

* bugfix: force black text in GUI file dialogs (linux)

* dssim loss - Move to stock tf.ssim function

* Update optimizer imports for compatibility

* fix logging for tf2.8

* Fix GUI graphing for TF2.8

* update tests

* bump requirements.txt versions

* Remove limit on nvidia-ml-py

* Graphing bugfixes
  - Prevent live graph from displaying if data not yet available

* bugfix: Live graph. Collect loss labels correctly

* fix: live graph - swallow inconsistent loss errors

* Bugfix: Prevent live graph from clearing during training

* Fix graphing for AMD 
setup.py