MCPcopy Create free account

hub / github.com/rbgirshick/yacs / functions

Functions56 in github.com/rbgirshick/yacs

↓ 20 callersFunctionget_cfg
(cls=CN)
yacs/tests.py:20
↓ 14 callersFunction_assert_with_logging
(cond, msg)
yacs/config.py:542
↓ 10 callersMethodmerge_from_file
Load a yaml config file and merge it this CfgNode.
yacs/config.py:209
↓ 10 callersMethodmerge_from_other_cfg
Merge `cfg_other` into this CfgNode.
yacs/config.py:215
↓ 7 callersMethoddump
Dump to a string.
yacs/config.py:188
↓ 5 callersMethodclone
Recursively copy this CfgNode.
yacs/config.py:273
↓ 5 callersMethodload_cfg
Load a cfg. Args: cfg_file_obj_or_str (str or file): Supports loading from: - A file obje
yacs/config.py:343
↓ 5 callersMethodmerge_from_list
Merge config (keys, values) in a list (e.g., from command line) into this CfgNode. For example, `cfg_list = ['FOO.BAR', 0.5]`.
yacs/config.py:219
↓ 4 callersMethodfreeze
Make this CfgNode and all of its children immutable.
yacs/config.py:248
↓ 4 callersMethodis_frozen
Return mutability.
yacs/config.py:256
↓ 3 callersFunction_valid_type
(value, allow_cfg_node=False)
yacs/config.py:448
↓ 2 callersFunction_check_and_coerce_cfg_value_type
Checks that `replacement`, which is intended to replace `original` is of the right type. The type is correct if it matches exactly or is one of a
yacs/config.py:494
↓ 2 callersMethod_decode_cfg_value
Decodes a raw config value (e.g., from a yaml config files or command line argument) into a Python object. If the value is a
yacs/config.py:405
↓ 2 callersMethod_immutable
Set immutability to is_immutable and recursively apply the setting to all nested CfgNodes.
yacs/config.py:260
↓ 2 callersMethod_load_cfg_from_yaml_str
Load a config from a YAML string encoding.
yacs/config.py:382
↓ 2 callersMethoddefrost
Make this CfgNode and all of its children mutable.
yacs/config.py:252
↓ 2 callersMethodkey_is_deprecated
Test if a key is deprecated.
yacs/config.py:301
↓ 2 callersMethodkey_is_renamed
Test if a key is renamed.
yacs/config.py:308
↓ 2 callersMethodraise_key_rename_error
(self, full_key)
yacs/config.py:312
↓ 2 callersMethodregister_deprecated_key
Register key (e.g. `FOO.BAR`) a deprecated option. When merging deprecated keys a warning is generated and the key is ignored.
yacs/config.py:277
↓ 1 callersMethod_create_config_tree_from_dict
Create a configuration tree using the given dict. Any dict-like objects inside dict will be treated as a new CfgNode. Args:
yacs/config.py:112
↓ 1 callersMethod_load_cfg_from_file
Load a config from a YAML file or a Python source file.
yacs/config.py:368
↓ 1 callersMethod_load_cfg_py_source
Load a config from a Python source file.
yacs/config.py:388
↓ 1 callersFunction_load_module_from_file
(name, filename)
yacs/config.py:548
↓ 1 callersFunction_merge_a_into_b
Merge config dictionary a into config dictionary b, clobbering the options in b whenever they are also specified in a.
yacs/config.py:454
↓ 1 callersFunctionconditional_cast
(from_type, to_type)
yacs/config.py:514
↓ 1 callersMethodis_new_allowed
(self)
yacs/config.py:325
↓ 1 callersMethodregister_renamed_key
Register a key as having been renamed from `old_name` to `new_name`. When merging a renamed key, an exception is thrown alerting to user to
yacs/config.py:287
↓ 1 callersMethodset_new_allowed
Set this config (and recursively its subconfigs) to allow merging new keys from other configs.
yacs/config.py:328
Method__getattr__
(self, name)
yacs/config.py:137
Method__init__
Args: init_dict (dict): the possibly-nested dictionary to initailize the CfgNode. key_list (list[str]): a list of nam
yacs/config.py:74
Method__repr__
(self)
yacs/config.py:185
Method__setattr__
(self, name, value)
yacs/config.py:143
Method__str__
(self)
yacs/config.py:164
Method_indent
(s_, num_spaces)
yacs/config.py:165
Methodconvert_to_dict
(cfg_node, key_list)
yacs/config.py:191
Methodtest__str__
(self)
yacs/tests.py:271
Methodtest_copy_cfg
(self)
yacs/tests.py:90
Methodtest_deprecated_key_from_file
(self)
yacs/tests.py:211
Methodtest_deprecated_key_from_list
(self)
yacs/tests.py:178
Methodtest_immutability
(self)
yacs/tests.py:61
Methodtest_invalid_type
(self)
yacs/tests.py:266
Methodtest_load_cfg_from_file
(self)
yacs/tests.py:248
Methodtest_load_cfg_invalid_type
(self)
yacs/tests.py:199
Methodtest_load_from_python_file
(self)
yacs/tests.py:256
Methodtest_merge_cfg_from_cfg
(self)
yacs/tests.py:97
Methodtest_merge_cfg_from_cfg
(self)
yacs/tests.py:339
Methodtest_merge_cfg_from_file
(self)
yacs/tests.py:153
Methodtest_merge_cfg_from_file
(self)
yacs/tests.py:314
Methodtest_merge_cfg_from_list
(self)
yacs/tests.py:164
Methodtest_merge_cfg_from_list
(self)
yacs/tests.py:325
Methodtest_new_allowed
(self)
yacs/tests.py:296
Methodtest_new_allowed_bad
(self)
yacs/tests.py:303
Methodtest_nonexistant_key_from_list
(self)
yacs/tests.py:193
Methodtest_renamed_key_from_file
(self)
yacs/tests.py:234
Methodtest_renamed_key_from_list
(self)
yacs/tests.py:226