Skip to content
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

Fix tensor frexp #3259

Merged
merged 3 commits into from
Sep 19, 2022
Merged

Conversation

fyrestone
Copy link
Contributor

What do these changes do?

The numpy.frexp writes to the out1, out2 if out1, out2 are passed as input args. e.g. numpy.frexp(x, out1, out2). But, almost all the cases that the out1 and out2 are got from the shared memory, then the out1 and out2 are immutable. So, this PR uses out1, out2 = numpy.frexp(x) instead of numpy.frexp(x, out1, out2).

Related issue number

Fixes #3257

Check code requirements

  • tests added / passed (if needed)
  • Ensure all linting tests pass, see here for how to run them

@fyrestone fyrestone self-assigned this Sep 16, 2022
@fyrestone fyrestone added this to In Progress in Ray DAG Execution Backend via automation Sep 16, 2022
@fyrestone fyrestone marked this pull request as ready for review September 16, 2022 07:54
@fyrestone fyrestone requested a review from a team as a code owner September 16, 2022 07:54
Copy link
Contributor

@zhongchun zhongchun left a comment

Choose a reason for hiding this comment

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

LGTM.

Copy link
Contributor

@chaokunyang chaokunyang left a comment

Choose a reason for hiding this comment

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

LGTM

@chaokunyang chaokunyang merged commit 8e0d0e6 into mars-project:master Sep 19, 2022
Ray DAG Execution Backend automation moved this from In Progress to Done Sep 19, 2022
qianduoduo0904 pushed a commit to qianduoduo0904/mars that referenced this pull request Sep 22, 2022
* Fix tensor frexp

* Test for Ray DAG

* Fix

Co-authored-by: 刘宝 <[email protected]>
(cherry picked from commit 8e0d0e6)
UranusSeven pushed a commit to xorbitsai/mars that referenced this pull request Sep 22, 2022
* Fix tensor frexp

* Test for Ray DAG

* Fix

Co-authored-by: 刘宝 <[email protected]>
(cherry picked from commit 8e0d0e6)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

[BUG] Ray executor fail on test_frexp_execution
3 participants