(self, cfg_list)
Merge config (keys, values) in a list (e.g., from command line) into
        this CfgNode. For example, `cfg_list = ['FOO.BAR', 0.5]`.
Merge config (keys, values) in a list (e.g., from command line) into
        this CfgNode. For example, `cfg_list = ['FOO.BAR', 0.5]`.
Merge config ( keys values ) in a list ( e . g . from command line ) into this CfgNode . For example cfg_list = [ FOO . BAR 0 . 5 ] .
def merge_from_list(self, cfg_list):
        """Merge config (keys, values) in a list (e.g., from command line) into
        this CfgNode. For example, `cfg_list = ['FOO.BAR', 0.5]`.
        """
        _assert_with_logging(
            len(cfg_list) % 2 == 0,
            "Override list has odd length: {}; it must be a list of pairs".format(
                cfg_list
            ),
        )
        root = self
        for full_key, v in zip(cfg_list[0::2], cfg_list[1::2]):
            if root.key_is_deprecated(full_key):
                continue
            if root.key_is_renamed(full_key):
                root.raise_key_rename_error(full_key)
            key_list = full_key.split(".")
            d = self
            for subkey in key_list[:-1]:
                _assert_with_logging(
                    subkey in d, "Non-existent key: {}".format(full_key)
                )
                d = d[subkey]
            subkey = key_list[-1]
            _assert_with_logging(subkey in d, "Non-existent key: {}".format(full_key))
            value = self._decode_cfg_value(v)
            value = _check_and_coerce_cfg_value_type(value, d[subkey], subkey, full_key)
            d[subkey] = value
def merge_from_list ( self , cfg_list ) : _assert_with_logging ( len ( cfg_list ) % 2 == 0 , "Override list has odd length: {}; it must be a list of pairs" . format ( cfg_list ) , ) root = self for full_key , v in zip ( cfg_list [ 0 : : 2 ] , cfg_list [ 1 : : 2 ] ) : if root . key_is_deprecated ( full_key ) : continue if root . key_is_renamed ( full_key ) : root . raise_key_rename_error ( full_key ) key_list = full_key . split ( "." ) d = self for subkey in key_list [ : - 1 ] : _assert_with_logging ( subkey in d , "Non-existent key: {}" . format ( full_key ) ) d = d [ subkey ] subkey = key_list [ - 1 ] _assert_with_logging ( subkey in d , "Non-existent key: {}" . format ( full_key ) ) value = self . _decode_cfg_value ( v ) value = _check_and_coerce_cfg_value_type ( value , d [ subkey ] , subkey , full_key ) d [ subkey ] = value