examples/language_model/experimental/ernie/propeller/util.py
def parse_runconfig(args=None):
    """get run_config from env or file"""
    d = _get_dict_from_environ_or_json_or_file(args.run_config,
                                               'PROPELLER_RUNCONFIG')
    if d is None:
        raise ValueError('run_config not found')
    return RunConfig(**d)
get run_config from env or file
get run_config from env or file
get run_config from env or file
def parse_runconfig(args=None):
    d = _get_dict_from_environ_or_json_or_file(args.run_config,
                                               'PROPELLER_RUNCONFIG')
    if d is None:
        raise ValueError('run_config not found')
    return RunConfig(**d)
def parse_runconfig ( args = None ) : d = _get_dict_from_environ_or_json_or_file ( args . run_config , 'PROPELLER_RUNCONFIG' ) if d is None : raise ValueError ( 'run_config not found' ) return RunConfig ( ** d )
get run_config from env or file
get run_config from env or file
"""get run_config from env or file"""
args