(flags, args, conf)
| 65 | |
| 66 | |
| 67 | def run_model(flags, args, conf): |
| 68 | model_conf = get_model_conf_by_name(flags, conf) |
| 69 | mace_check(model_conf is not None, "Get model conf failed.") |
| 70 | model_conf = config_parser.normalize_model_config(model_conf) |
| 71 | mace_check(len(model_conf[ModelKeys.subgraphs].items()) == 1, |
| 72 | "MACE Micro does not support multi graph.") |
| 73 | for graph_name, graph_config in model_conf[ModelKeys.subgraphs].items(): |
| 74 | run_model_with_conf(flags, args, flags.model_name, graph_config) |
| 75 | |
| 76 | |
| 77 | def gen_sub_model_conf(output_config, flags, conf): |
no test coverage detected