MCPcopy Create free account
hub / github.com/SooLab/CGFormer / update

Method update

bert/configuration_utils.py:399–408  ·  view source on GitHub ↗

Updates attributes of this class with attributes from `config_dict`. Args: :obj:`Dict[str, any]`: Dictionary of attributes that shall be updated for this class.

(self, config_dict: Dict)

Source from the content-addressed store, hash-verified

397 writer.write(self.to_json_string(use_diff=use_diff))
398
399 def update(self, config_dict: Dict):
400 """
401 Updates attributes of this class
402 with attributes from `config_dict`.
403
404 Args:
405 :obj:`Dict[str, any]`: Dictionary of attributes that shall be updated for this class.
406 """
407 for key, value in config_dict.items():
408 setattr(self, key, value)

Callers 3

http_getFunction · 0.45
_from_pretrainedMethod · 0.45
_add_tokensMethod · 0.45

Calls 1

itemsMethod · 0.80

Tested by

no test coverage detected