The same as `fvcore.common.config.CfgNode`, but different in: 1. Use unsafe yaml loading by default. Note that this may lead to arbitrary code execution: you must not load a config file from untrusted sources before manually inspecting the content of the file. 2. S
| 1 | from fvcore.common.config import CfgNode as _CfgNode |
| 2 | |
| 3 | class CfgNode(_CfgNode): |
| 4 | """ |
| 5 | The same as `fvcore.common.config.CfgNode`, but different in: |
| 6 | |
| 7 | 1. Use unsafe yaml loading by default. |
| 8 | Note that this may lead to arbitrary code execution: you must not |
| 9 | load a config file from untrusted sources before manually inspecting |
| 10 | the content of the file. |
| 11 | 2. Support config versioning. |
| 12 | When attempting to merge an old config, it will convert the old config automatically. |
| 13 | |
| 14 | .. automethod:: clone |
| 15 | .. automethod:: freeze |
| 16 | .. automethod:: defrost |
| 17 | .. automethod:: is_frozen |
| 18 | .. automethod:: load_yaml_with_base |
| 19 | .. automethod:: merge_from_list |
| 20 | .. automethod:: merge_from_other_cfg |
| 21 | """ |
| 22 | |
| 23 | def merge_from_dict(self, dict): |
| 24 | pass |
| 25 | |
| 26 | node = CfgNode() |
no outgoing calls
no test coverage detected