              softmax activation layer. Default: `-1` (The final layer of the model)
          """
          logger.debug("Appending Softmax Activation to model: (layer_index: %s)", layer_index)
          softmax = Activation("softmax", name="softmax")(self._model.layers[layer_index].output)
          self._model = Model(inputs=self._model.input, outputs=[softmax])
 
</s> remove     def append_softmax_activation(self, layer_index=-1):
 </s> add     def append_softmax_activation(self, layer_index: int = -1) -> None: </s> remove         logger.verbose("Initializing plugin model: %s", self._name)
 </s> add         logger.verbose("Initializing plugin model: %s", self._name)  # type:ignore </s> remove         logger.verbose("Initializing plugin model: %s", self._name)
 </s> add         logger.verbose("Initializing plugin model: %s", self._name)  # type:ignore
        assert self._model is not None </s> remove     def __init__(self, name, model_path, model_kwargs=None, allow_growth=False, exclude_gpus=None):
        logger.trace("Initializing: %s (name: %s, model_path: %s, model_kwargs: %s, "
                     "allow_growth: %s, exclude_gpus: %s)", self.__class__.__name__, name,
                     model_path, model_kwargs, allow_growth, exclude_gpus)
 </s> add     def __init__(self,
                 name: str,
                 model_path: str,
                 model_kwargs: Optional[dict] = None,
                 allow_growth: bool = False,
                 exclude_gpus: Optional[List[int]] = None) -> None:
        logger.trace("Initializing: %s (name: %s, model_path: %s, "  # type:ignore
                     "model_kwargs: %s,  allow_growth: %s, exclude_gpus: %s)",
                     self.__class__.__name__, name, model_path, model_kwargs, allow_growth,
                     exclude_gpus) </s> remove         self._set_session(allow_growth, exclude_gpus)
 </s> add         self._set_session(allow_growth, [] if exclude_gpus is None else exclude_gpus)
        assert self._model is not None
              softmax activation layer. Default: `-1` (The final layer of the model)
          """
          logger.debug("Appending Softmax Activation to model: (layer_index: %s)", layer_index)
        assert self._model is not None
          softmax = Activation("softmax", name="softmax")(self._model.layers[layer_index].output)
          self._model = Model(inputs=self._model.input, outputs=[softmax])
keep keep add keep keep
 Update TF to 2.9
    - Update TF to 2.7 to 2.9
    - Bump dependencies
    - Remove decode from pynvml calls
    - force keras predict functions to non-verbose
    - update tests
    - update Tensorboard logging
    - Update docs 
lib/model/session.py