From 7fa3a7248f5e1a37daf6fb068f93a42ec6473837 Mon Sep 17 00:00:00 2001 From: huzhiqiang <912790387@qq.com> Date: Thu, 24 Mar 2022 14:04:42 +0800 Subject: [PATCH] [Infrt] upgrade kernel launcher fun generator (#40826) --- tools/infrt/get_phi_kernel_info.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/infrt/get_phi_kernel_info.py b/tools/infrt/get_phi_kernel_info.py index 23d9a8ffdd..db2e56ca32 100644 --- a/tools/infrt/get_phi_kernel_info.py +++ b/tools/infrt/get_phi_kernel_info.py @@ -58,7 +58,7 @@ def get_api_yaml_info(file_path): def get_kernel_info(file_path): f = open(file_path, "r") cont = f.readlines() - return [l.strip() for l in cont] + return [l.strip() for l in cont if l.strip() != ""] def get_attr_info(file_path): -- GitLab