[docs]defload_ops(process_list):""" Load op list according to the process list from config file. :param process_list: A process list. Each item is an op name and its arguments. :return: The op instance list. """ops=[]new_process_list=[]forprocessinprocess_list:op_name,args=list(process.items())[0]ops.append(OPERATORS.modules[op_name](**args))new_process_list.append(process)# store the OP configs into each OPforop_cfg,opinzip(new_process_list,ops):op._op_cfg=op_cfgreturnops