Skip to content

Stop using an unnecessary scalar_to_tensor(..., device) call.#50114

Closed
gchanan wants to merge 7 commits intogh/gchanan/350/basefrom
gh/gchanan/350/head
Closed

Stop using an unnecessary scalar_to_tensor(..., device) call.#50114
gchanan wants to merge 7 commits intogh/gchanan/350/basefrom
gh/gchanan/350/head

Conversation

@gchanan
Copy link
Copy Markdown
Contributor

@gchanan gchanan commented Jan 5, 2021

Stack from ghstack:

In this case, the function only dispatches on cpu anyway.

Differential Revision: D25790155

In this case, the function only dispatches on cpu anyway.
@facebook-github-bot
Copy link
Copy Markdown
Contributor

facebook-github-bot commented Jan 5, 2021

💊 CI failures summary and remediations

As of commit da49573 (more details on the Dr. CI page):


  • 1/1 failures possibly* introduced in this PR
    • 1/1 non-CircleCI failure(s)

This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.

Please report bugs/suggestions to the (internal) Dr. CI Users group.

This comment has been revised 45 times.

…ll."

In this case, the function only dispatches on cpu anyway.

Differential Revision: [D25790155](https://our.internmc.facebook.com/intern/diff/D25790155)
…ll."

In this case, the function only dispatches on cpu anyway.

Differential Revision: [D25790155](https://our.internmc.facebook.com/intern/diff/D25790155)
@gchanan gchanan requested a review from mruberry January 5, 2021 22:37
…ll."

In this case, the function only dispatches on cpu anyway.

Differential Revision: [D25790155](https://our.internmc.facebook.com/intern/diff/D25790155)
…ll."

In this case, the function only dispatches on cpu anyway.

Differential Revision: [D25790155](https://our.internmc.facebook.com/intern/diff/D25790155)
…ll."

In this case, the function only dispatches on cpu anyway.

Differential Revision: [D25790155](https://our.internmc.facebook.com/intern/diff/D25790155)
Copy link
Copy Markdown
Collaborator

@mruberry mruberry left a comment

Choose a reason for hiding this comment

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

Cool!

…ll."

In this case, the function only dispatches on cpu anyway.

Differential Revision: [D25790155](https://our.internmc.facebook.com/intern/diff/D25790155)
@gchanan
Copy link
Copy Markdown
Contributor Author

gchanan commented Jan 11, 2021

this is tested, see: #50376.

@facebook-github-bot
Copy link
Copy Markdown
Contributor

@gchanan merged this pull request in b001c4c.

@facebook-github-bot facebook-github-bot deleted the gh/gchanan/350/head branch January 15, 2021 15:17
laurentdupin pushed a commit to laurentdupin/pytorch that referenced this pull request Apr 24, 2026
…h#50114)

Summary:
Pull Request resolved: pytorch#50114

In this case, the function only dispatches on cpu anyway.

Test Plan: Imported from OSS

Reviewed By: mruberry

Differential Revision: D25790155

Pulled By: gchanan

fbshipit-source-id: 799dc9a3a38328a531ced9e85ad2b4655533e86a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants