未验证 提交 059bfd69 编写于 作者: C chentianyu03 提交者: GitHub

change wlist.json, add annotation (#27438)

* modify ci api white list, add annotation

* modify ci api white list, add annotation

* move gpu_not_white list to wlist.json

* add null line
上级 41a7ce83
...@@ -534,13 +534,6 @@ def get_incrementapi(): ...@@ -534,13 +534,6 @@ def get_incrementapi():
f.write('\n') f.write('\n')
# only white on CPU
gpu_not_white = [
"deformable_conv", "cuda_places", "CUDAPinnedPlace", "CUDAPlace",
"cuda_profiler", 'DGCMomentumOptimizer'
]
def get_wlist(): def get_wlist():
''' '''
this function will get the white list of API. this function will get the white list of API.
...@@ -552,17 +545,25 @@ def get_wlist(): ...@@ -552,17 +545,25 @@ def get_wlist():
''' '''
wlist = [] wlist = []
wlist_file = [] wlist_file = []
# only white on CPU
gpu_not_white = []
with open("wlist.json", 'r') as load_f: with open("wlist.json", 'r') as load_f:
load_dict = json.load(load_f) load_dict = json.load(load_f)
for key in load_dict: for key in load_dict:
if key == 'wlist_file': if key == 'wlist_dir':
wlist_file = wlist_file + load_dict[key] for item in load_dict[key]:
wlist_file.append(item["name"])
elif key == "gpu_not_white":
gpu_not_white = load_dict[key]
elif key == "wlist_api":
for item in load_dict[key]:
wlist.append(item["name"])
else: else:
wlist = wlist + load_dict[key] wlist = wlist + load_dict[key]
return wlist, wlist_file return wlist, wlist_file, gpu_not_white
wlist, wlist_file = get_wlist() wlist, wlist_file, gpu_not_white = get_wlist()
if len(sys.argv) < 2: if len(sys.argv) < 2:
print("Error: inadequate number of arguments") print("Error: inadequate number of arguments")
......
{ {
"wlist_file" : [ "wlist_dir":[
"../python/paddle/fluid/contrib", {
"../python/paddle/verison.py", "name":"../python/paddle/fluid/contrib",
"../python/paddle/fluid/core_avx.py", "annotation":""
"../python/paddle/distributed" },
{
"name":"../python/paddle/verison.py",
"annotation":""
},
{
"name":"../python/paddle/fluid/core_avx.py",
"annotation":""
},
{
"name":"../python/paddle/distributed",
"annotation":""
}
], ],
"wlist_inneed":[ "wlist_api":[
{
"name":"xxxxx",
"annotation":"not a real api, just for example"
}
],
"wlist_temp_api":[
"append_LARS", "append_LARS",
"BuildStrategy.debug_graphviz_path", "BuildStrategy.debug_graphviz_path",
"BuildStrategy.enable_sequential_execution", "BuildStrategy.enable_sequential_execution",
...@@ -63,9 +81,7 @@ ...@@ -63,9 +81,7 @@
"cuda_places", "cuda_places",
"CUDAPinnedPlace", "CUDAPinnedPlace",
"CUDAPlace", "CUDAPlace",
"Program.parse_from_string" "Program.parse_from_string",
],
"wlist_nosample":[
"Compressor", "Compressor",
"Compressor.config", "Compressor.config",
"Compressor.run", "Compressor.run",
...@@ -159,13 +175,9 @@ ...@@ -159,13 +175,9 @@
"RNN", "RNN",
"BiRNN", "BiRNN",
"RNNCellBase", "RNNCellBase",
"RNNCellBase.get_initial_states" "RNNCellBase.get_initial_states",
],
"wlist_no_op_pass":[
"gelu", "gelu",
"erf" "erf",
],
"wlist_ci_nopass":[
"DecodeHelper", "DecodeHelper",
"DecodeHelper.initialize", "DecodeHelper.initialize",
"DecodeHelper.sample", "DecodeHelper.sample",
...@@ -188,9 +200,7 @@ ...@@ -188,9 +200,7 @@
"SampleEmbeddingHelper", "SampleEmbeddingHelper",
"BasicDecoder", "BasicDecoder",
"lstm", "lstm",
"partial_sum" "partial_sum",
],
"wlist_nopass":[
"StateCell", "StateCell",
"StateCell.compute_state", "StateCell.compute_state",
"TrainingDecoder", "TrainingDecoder",
...@@ -242,9 +252,7 @@ ...@@ -242,9 +252,7 @@
"GroupNorm", "GroupNorm",
"SpectralNorm", "SpectralNorm",
"TreeConv", "TreeConv",
"prroi_pool" "prroi_pool",
],
"wlist_temp":[
"to_tensor", "to_tensor",
"ChunkEvaluator", "ChunkEvaluator",
"EditDistance", "EditDistance",
...@@ -322,9 +330,7 @@ ...@@ -322,9 +330,7 @@
"Conv2DTranspose", "Conv2DTranspose",
"QueueDataset.local_shuffle", "QueueDataset.local_shuffle",
"save_persistables@dygraph/checkpoint.py", "save_persistables@dygraph/checkpoint.py",
"load_persistables@dygraph/checkpoint.py" "load_persistables@dygraph/checkpoint.py",
],
"wlist_ignore":[
"elementwise_pow", "elementwise_pow",
"WeightedAverage.reset", "WeightedAverage.reset",
"ChunkEvaluator.eval", "ChunkEvaluator.eval",
...@@ -401,5 +407,13 @@ ...@@ -401,5 +407,13 @@
"LinearChainCRF.forward", "LinearChainCRF.forward",
"CRFDecoding.forward", "CRFDecoding.forward",
"SequenceTagging.forward" "SequenceTagging.forward"
],
"gpu_not_white":[
"deformable_conv",
"cuda_places",
"CUDAPinnedPlace",
"CUDAPlace",
"cuda_profiler",
"DGCMomentumOptimizer"
] ]
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册