-
Notifications
You must be signed in to change notification settings - Fork 608
Introduce sym_max and sym_min ops to executorch #12037
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
base: main
Are you sure you want to change the base?
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/12037
Note: Links to docs will display an error until the docs builds have been completed. ❌ 4 New Failures, 2 Cancelled JobsAs of commit d445a0c with merge base 4e59c4e ( NEW FAILURES - The following jobs have failed:
CANCELLED JOBS - The following jobs were cancelled. Please retry:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
f167a3a
to
b94e801
Compare
if (a.isInt() && b.isInt()) { | ||
out = EValue(std::max(a.toInt(), b.toInt())); | ||
} else { | ||
ET_CHECK_MSG(false, "sym_max only supports int inputs, got %zu, %zu", (size_t)a.tag, (size_t)b.tag); |
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.
@Conarnar has a PR up to change all of these checks in prim ops to non fatal
if (a.isInt() && b.isInt()) { | ||
out = EValue(std::max(a.toInt(), b.toInt())); | ||
} else { | ||
ET_CHECK_MSG( |
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.
Please use ET_KERNEL_CHECK_MSG instead so that we dont abort the process unecessarily
Added corresponding tests as well
Added corresponding tests as well
Fixes #11988
Test plan
test added