trains/model.py
def update_design(self, config_text=None, config_dict=None):
        """
        Update the model configuration, basically store a blob of text for custom usage

        Notice: this is done in a lazily, only when updating weights we force the update of configuration in the backend

        :param config_text: model configuration (unconstrained text string). usually the content of a config_dict file.
            If `config_text` is not None, `config_dict` must not be provided.
        :param config_dict: model configuration parameters (dict).
            If `config_dict` is not None, `config_text` must not be provided.
        :return: True if update was successful
        """
        if not self._validate_update():
            return

        config_text = self._resolve_config(config_text=config_text, config_dict=config_dict)

        if self._task:
            self._task.set_model_config(config_text=config_text)

        if self.id:
            # update the model object (this will happen if we resumed a training task)
            result = self._get_force_base_model().update(design=config_text, task_id=self._task.id)
        else:
            self._floating_data.design = _Model._wrap_design(config_text)
            result = Waitable()

        # you can wait on this object
        return result

        Update the model configuration, basically store a blob of text for custom usage

        Notice: this is done in a lazily, only when updating weights we force the update of configuration in the backend

        :param config_text: model configuration (unconstrained text string). usually the content of a config_dict file.
            If `config_text` is not None, `config_dict` must not be provided.
        :param config_dict: model configuration parameters (dict).
            If `config_dict` is not None, `config_text` must not be provided.
        :return: True if update was successful
        
Update the model configuration, basically store a blob of text for custom usage
Notice: this is done in a lazily, only when updating weights we force the update of configuration in the backend
Update the model configuration basically store a blob of text for custom usage Notice : this is done in a lazily only when updating weights we force the update of configuration in the backend
def update_design(self, config_text=None, config_dict=None):
        if not self._validate_update():
            return
        config_text = self._resolve_config(config_text=config_text, config_dict=config_dict)
        if self._task:
            self._task.set_model_config(config_text=config_text)
        if self.id:
            result = self._get_force_base_model().update(design=config_text, task_id=self._task.id)
        else:
            self._floating_data.design = _Model._wrap_design(config_text)
            result = Waitable()
        return result
def update_design ( self , config_text = None , config_dict = None ) : if not self . _validate_update ( ) : return config_text = self . _resolve_config ( config_text = config_text , config_dict = config_dict ) if self . _task : self . _task . set_model_config ( config_text = config_text ) if self . id : result = self . _get_force_base_model ( ) . update ( design = config_text , task_id = self . _task . id ) else : self . _floating_data . design = _Model . _wrap_design ( config_text ) result = Waitable ( ) return result
Update the model configuration, basically store a blob of text for custom usage
Notice: this is done in a lazily, only when updating weights we force the update of configuration in the backend
Update the model configuration basically store a blob of text for custom usage Notice : this is done in a lazily only when updating weights we force the update of configuration in the backend
"""
        Update the model configuration, basically store a blob of text for custom usage

        Notice: this is done in a lazily, only when updating weights we force the update of configuration in the backend

        :param config_text: model configuration (unconstrained text string). usually the content of a config_dict file.
            If `config_text` is not None, `config_dict` must not be provided.
        :param config_dict: model configuration parameters (dict).
            If `config_dict` is not None, `config_text` must not be provided.
        :return: True if update was successful
        """ # update the model object (this will happen if we resumed a training task) # you can wait on this object
True if update was successful
True if update was successful
self
config_text
model configuration (unconstrained text string). usually the content of a config_dict file.
If `config_text` is not None, `config_dict` must not be provided.
model configuration ( unconstrained text string ) . usually the content of a config_dict file . If ` config_text ` is not None ` config_dict ` must not be provided .
config_dict
model configuration parameters (dict).
If `config_dict` is not None, `config_text` must not be provided.
model configuration parameters ( dict ) . If ` config_dict ` is not None ` config_text ` must not be provided .