              optimizer = self._settings.loss_scale_optimizer(optimizer)
          if get_backend() == "amd":
              self._rewrite_plaid_outputs()
          self._loss.configure(self._model)
          self._model.compile(optimizer=optimizer, loss=self._loss.functions)
          self._state.add_session_loss_names(self._loss.names)
          logger.debug("Compiled Model: %s", self._model)
  
 
</s> remove         if not self._is_predict:
            self._state.add_session_loss_names(self._loss.names)
 </s> add         self._state.add_session_loss_names(self._loss.names) </s> remove                 opt_value = self.config.get(section, item)
                if opt_value.lower() == "none" and any(choice.lower() == "none"
                                                       for choice in opt["choices"]):
                    continue
                if opt_value not in opt["choices"]:
                    default = str(opt["default"])
                    logger.warning("'%s' is not a valid config choice for '%s': '%s'. Defaulting "
                                   "to: '%s'", opt_value, section, item, default)
                    self.config.set(section, item, default)
 </s> add                 if opt["type"] == list:  # Multi-select items
                    opt_value = self._parse_list(section, item)
                    if not opt_value:  # No option selected
                        continue
                    if not all(val in opt["choices"] for val in opt_value):
                        invalid = [val for val in opt_value if val not in opt["choices"]]
                        valid = ", ".join(val for val in opt_value if val in opt["choices"])
                        logger.warning("The option(s) %s are not valid selections for '%s': '%s'. "
                                       "setting to: '%s'", invalid, section, item, valid)
                        self.config.set(section, item, valid)
                else:  # Single-select items
                    opt_value = self.config.get(section, item)
                    if opt_value.lower() == "none" and any(choice.lower() == "none"
                                                           for choice in opt["choices"]):
                        continue
                    if opt_value not in opt["choices"]:
                        default = str(opt["default"])
                        logger.warning("'%s' is not a valid config choice for '%s': '%s'. "
                                       "Defaulting to: '%s'", opt_value, section, item, default)
                        self.config.set(section, item, default)
        self._freeze_weights()
              optimizer = self._settings.loss_scale_optimizer(optimizer)
          if get_backend() == "amd":
              self._rewrite_plaid_outputs()
        self._freeze_weights()
          self._loss.configure(self._model)
          self._model.compile(optimizer=optimizer, loss=self._loss.functions)
          self._state.add_session_loss_names(self._loss.names)
          logger.debug("Compiled Model: %s", self._model)
  
keep keep add keep keep keep keep keep
 scripts.train - Add freeze weights option
lib.config:
  - Better formatting for .ini files
  - Support multi-select options
gui - Add support for multi-select config items 
plugins/train/model/_base.py