Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update get_kernel_signatures.py tool #52875

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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