Skip to content

Update div rounding_mode argument to optional<string>#2859

Merged
JackCaoG merged 5 commits intopytorch:masterfrom
peterbell10:div-rounding_mode
Apr 5, 2021
Merged

Update div rounding_mode argument to optional<string>#2859
JackCaoG merged 5 commits intopytorch:masterfrom
peterbell10:div-rounding_mode

Conversation

@peterbell10
Copy link
Copy Markdown
Contributor

This complements pytorch/pytorch#51988. rounding_mode="true" is now rounding_mode=None.

Copy link
Copy Markdown
Collaborator

@JackCaoG JackCaoG left a comment

Choose a reason for hiding this comment

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

Thanks @peterbell10 ! Mostly LGTM, one nit.

Comment thread torch_xla/csrc/tensor_methods.cpp
@JackCaoG
Copy link
Copy Markdown
Collaborator

JackCaoG commented Apr 2, 2021

Can you also fix the c++ format by https://github.com/pytorch/xla/blob/master/CONTRIBUTING.md#c-style-guide

Copy link
Copy Markdown
Collaborator

@JackCaoG JackCaoG left a comment

Choose a reason for hiding this comment

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

Thanks!

@JackCaoG
Copy link
Copy Markdown
Collaborator

JackCaoG commented Apr 2, 2021

Could you add a .torch_pin similar to https://github.com/pytorch/xla/pull/2826/files#diff-e71f55b9deb410fad9d5945c4c30878a93369434520520987ac03c59bfa5280d? For you case it should be #51988

This will point the pytorch to a specific pr when building with circleCI

@JackCaoG JackCaoG merged commit 72f92df into pytorch:master Apr 5, 2021
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