Skip to content

Commit

Permalink
update (#52875)
Browse files Browse the repository at this point in the history
  • Loading branch information
huangjiyi authored Apr 14, 2023
1 parent 2f49971 commit ce6978c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions paddle/phi/tools/get_kernel_signatures.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def search(cls, search_path):
)
return pd.merge(
kernel_func_df, func_signature_df, on='kernel_func', how='left'
)[['kernel_name', 'kernel_signature']]
)[['kernel_name', 'kernel_signature']].sort_values(by='kernel_name')

def filter_result(self):
for kernel_name in self.filter["kernel_name"]:
Expand Down Expand Up @@ -207,14 +207,14 @@ def get_kernel_signatures():
# Because phi/kernels has some independent subdirs, whose kernel names
# (in different namespaces) may conflict with main directory or other
# subdirs, so we need to search them separately.
indenpendent_subdir = [
independent_subdir = [
'fusion',
'legacy',
'selected_rows',
'sparse',
'strings',
]
for subdir in indenpendent_subdir:
for subdir in independent_subdir:
sub_path = osp.join(base_path, subdir)
sub_df = KernelSignatureSearcher.search(sub_path)
kernel_signature_df = pd.concat(
Expand Down

0 comments on commit ce6978c

Please sign in to comment.