From 95a526b23c4a3de9c3b01ccf1ba281dca9bc5922 Mon Sep 17 00:00:00 2001 From: huzhiqiang <912790387@qq.com> Date: Sun, 13 Mar 2022 22:00:29 -0500 Subject: [PATCH] [infrt] add skip list (#40450) --- tools/infrt/get_compat_kernel_signature.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/infrt/get_compat_kernel_signature.py b/tools/infrt/get_compat_kernel_signature.py index 78d59c2aef..b8c4232076 100644 --- a/tools/infrt/get_compat_kernel_signature.py +++ b/tools/infrt/get_compat_kernel_signature.py @@ -16,6 +16,8 @@ import os import re import json +skip_list = [] + def parse_compat_registry(kernel_info): name, inputs_str, attrs_str, outputs_str = kernel_info.split(",{") @@ -42,6 +44,8 @@ def get_compat_kernels_info(): compat_files.remove(file_) for file_ in compat_files: + if file_ in skip_list: + continue with open("../../paddle/phi/ops/compat/" + file_) as in_file: txt = in_file.readlines() content = "" -- GitLab