Skip to content

Add LOG pointwise op support#309

Open
rsuderman wants to merge 1 commit intoiree-org:mainfrom
rsuderman:pointwise_log
Open

Add LOG pointwise op support#309
rsuderman wants to merge 1 commit intoiree-org:mainfrom
rsuderman:pointwise_log

Conversation

@rsuderman
Copy link
Copy Markdown
Contributor

No description provided.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Rob Suderman <rob.suderman@gmail.com>
@rsuderman rsuderman requested a review from sjain-stanford April 4, 2026 00:06
Comment on lines -165 to +171
execute(handle, DataType::Int32, int(-128));
execute(handle, DataType::Int32, int(128));
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes the Int32 test input from int(-128) to int(128). This is necessary because log(-128) is undefined, but since every PR branches from main independently, this change only exists in the LOG PR. When merged, this affects all other unary ops' test coverage.

This is fine for LOG (and EXP, ERF, FLOOR which are well-defined for 128), but consider: previously the negative input value -128 provided useful coverage for ABS and NEG. After this change, ABS is only tested with positive input (abs(128) == 128, a no-op) and the benefit of the negative test case is lost.

Suggestion: Rather than changing the shared input, add a second Int32 test case or use a GENERATE on input values, so both positive and negative inputs are exercised.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants