Skip to content

Add Log Operator #530

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 4 commits into from
Apr 11, 2025
Merged

Add Log Operator #530

merged 4 commits into from
Apr 11, 2025

Conversation

MARD1NO
Copy link
Collaborator

@MARD1NO MARD1NO commented Apr 7, 2025

PR Category

Type of Change

Description

Issue

Progress

  • Change is properly reviewed (1 reviewer required, 2 recommended).
  • Change is responded to an issue.
  • Change is fully covered by a UT.

Performance

image

Copy link
Collaborator

@StrongSpoon StrongSpoon left a comment

Choose a reason for hiding this comment

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

please implement benchmark for log.

@MARD1NO
Copy link
Collaborator Author

MARD1NO commented Apr 10, 2025

please implement benchmark for log.

Added log benchmark

Copy link
Collaborator

@StrongSpoon StrongSpoon left a comment

Choose a reason for hiding this comment

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

lgtm

@StrongSpoon StrongSpoon merged commit beef7b3 into master Apr 11, 2025
11 of 12 checks passed
@StrongSpoon StrongSpoon deleted the add_log_operator branch April 11, 2025 03:22
with flag_gems.use_gems():
res_out = torch.log(inp)

gems_assert_equal(res_out, ref_out)
Copy link
Collaborator

Choose a reason for hiding this comment

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

as for vendors need to keep aligned with cpu reference, I suggest upcasting the reference input to fp64 and asserting close for outputs.

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