-
Notifications
You must be signed in to change notification settings - Fork 4
Filter out operators we cannot test correctness for #105
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
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,13 @@ | |
"_fft_c2c.default", # cuFFT only supports dimensions whose sizes are powers of two when computing in half precision | ||
] | ||
|
||
UNTESTABLE_OPERATORS = [ | ||
"empty_like", | ||
"new_empty", | ||
"new_empty_strided", | ||
"bernoulli", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I feel like this one is different from the others, it is testable There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think fixing the error message to say we don't support them yet is correct. There is a way to test these but it would require some custom work |
||
] | ||
|
||
|
||
def apply_skip_ops_filter(ops): | ||
for op in ops: | ||
|
@@ -28,6 +35,12 @@ def apply_skip_ops_filter(ops): | |
op["why_excluded"].append("We cannot run this op on backendbench yet") | ||
op["runnable"] = False | ||
|
||
if any(skip_op in op["op_name"] for skip_op in UNTESTABLE_OPERATORS): | ||
op["included_in_benchmark"] = False | ||
op["why_excluded"].append( | ||
"This op creates a unpredictable output, and therefore cannot be tested for correctness" | ||
) | ||
|
||
if op["is_synthetic"]: | ||
op["included_in_benchmark"] = False | ||
op["why_excluded"].append( | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can test metadata if not the values, like we expect the output to have a certain shape
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same reply as above, I'll add comments to talk about this