Skip to content

Fix selective build codegen for sym primops #6484

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

Merged
merged 1 commit into from
Oct 24, 2024
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
4 changes: 3 additions & 1 deletion codegen/tools/gen_selected_op_variants.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe

import argparse
import os
import sys
Expand Down Expand Up @@ -72,7 +74,7 @@ def write_selected_op_variants(yaml_file_path: str, output_dir: str) -> None:
for operator_name, kernel_metadata_str in et_kernel_metadata.items():
tensor_meta = []
for kernel_metadata in kernel_metadata_str:
if kernel_metadata == "default":
if kernel_metadata == "default" or "/" not in kernel_metadata:
break
else:
x = kernel_metadata.split("/")[1]
Expand Down
Loading