-
Notifications
You must be signed in to change notification settings - Fork 7.2k
Expand prototype functional kernel scriptability tests #5496
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
Conversation
💊 CI failures summary and remediationsAs of commit 347ed61 (more details on the Dr. CI page): 💚 💚 Looks good so far! There are no failures yet. 💚 💚 This comment was automatically generated by Dr. CI (expand for details).Please report bugs/suggestions to the (internal) Dr. CI Users group. |
| if not name.startswith("_") | ||
| and callable(kernel) | ||
| and any(feature_type in name for feature_type in {"image", "segmentation_mask", "bounding_box", "label"}) | ||
| and "pil" not in name | ||
| and ( | ||
| name | ||
| not in { | ||
| "get_image_size", | ||
| "get_image_num_channels", | ||
| } | ||
| ) |
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.
This is only temporary. If we have full coverage for eager vs scripted tests we can simply reuse this instead of this abomination. Still, I've checked manually and for now this covers all kernels that we want to test and should be somewhat robust for future cases.
datumbox
left a comment
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.
LGTM, thanks!
Summary: * expand prototype functional scriptability tests * remove obsolete skips Reviewed By: datumbox Differential Revision: D34579503 fbshipit-source-id: 9425d301e5ec938bfc80494900224517815d22fb
While eager vs scripted tests require a case by case treatment due to varying inputs, just checking if something is scriptable can be achieved outside of that "framework".