Skip to content

Commit

Permalink
remove duplicate output
Browse files Browse the repository at this point in the history
  • Loading branch information
FindHao committed Feb 6, 2023
1 parent e3ac450 commit 2442f06
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions userbenchmark/api-coverage/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,10 @@ def check_func_in_APIs(self, func):
module_name, func_name = parse_func(func)
if (module_name, func_name) not in API_LIST:
if (module_name, func_name) not in IGNORED_API_LIST and module_name != 'torch._ops.profiler':
print("not in API_LIST or IGNORED_API_LIST: (%s, %s)" % (module_name, func_name))
self.api_need_support.add((module_name, func_name))
new_pair = (module_name, func_name)
if new_pair not in self.api_need_support:
print("not in API_LIST or IGNORED_API_LIST: (%s, %s)" % (module_name, func_name))
self.api_need_support.add((module_name, func_name))
else:
self.api_used.add((module_name, func_name))
# debug
Expand Down

0 comments on commit 2442f06

Please sign in to comment.