              updates.append(vhat_t)
          return tf.group(*updates)
  
      def _resource_apply_sparse(self, grad, handle, indices, apply_state=None):
          # pylint:disable=too-many-locals
          """ Add ops to apply sparse gradients to the variable handle.
  
          Similar to _apply_sparse, the indices argument to this method has been de-duplicated.
          Optimizers which deal correctly with non-unique indices may instead override
          :func:`_resource_apply_sparse_duplicate_indices` to avoid this overhead.
 
</s> remove         # pylint:disable=too-many-locals
 </s> add         # pylint:disable=too-many-locals,unused-argument </s> remove         epsilon = np.finfo(self._dtype).tiny
 </s> add         epsilon = np.finfo(self._dtype).tiny  # pylint:disable=no-member </s> remove                                                 tf.gather(tf.math.negative(lr_t) * var_t, indices))
 </s> add                                                 tf.gather(  # pylint:disable=no-value-for-parameter
                                                    tf.math.negative(lr_t) * var_t,
                                                    indices)) </s> remove     msg = "{}  has been deprecated and will be removed from a future update.".format(function)
 </s> add     msg = f"{function}  has been deprecated and will be removed from a future update." </s> remove 
    References
    ----------
    https://github.com/keras-team/keras-contrib/blob/master/keras_contrib/losses/dssim.py

    MIT License

    Copyright (c) 2017 Fariz Rahman

    Permission is hereby granted, free of charge, to any person obtaining a copy
    of this software and associated documentation files (the "Software"), to deal
    in the Software without restriction, including without limitation the rights
    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
    copies of the Software, and to permit persons to whom the Software is
    furnished to do so, subject to the following conditions:

    The above copyright notice and this permission notice shall be included in all
    copies or substantial portions of the Software.

    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
    SOFTWARE.
 </s> add 
        # pylint:disable=too-many-locals, unused-argument
              updates.append(vhat_t)
          return tf.group(*updates)
  
      def _resource_apply_sparse(self, grad, handle, indices, apply_state=None):
        # pylint:disable=too-many-locals, unused-argument
          """ Add ops to apply sparse gradients to the variable handle.
  
          Similar to _apply_sparse, the indices argument to this method has been de-duplicated.
          Optimizers which deal correctly with non-unique indices may instead override
          :func:`_resource_apply_sparse_duplicate_indices` to avoid this overhead.
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 
lib/model/optimizers_tf.py