Skip to content

Stop moving scalars to GPU for one computation in leaky_rrelu_backward.#50115

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

Stop moving scalars to GPU for one computation in leaky_rrelu_backward.#50115
gchanan wants to merge 7 commits intogh/gchanan/351/basefrom
gh/gchanan/351/head

Conversation

@gchanan
Copy link
Copy Markdown
Contributor

@gchanan gchanan commented Jan 5, 2021

Stack from ghstack:

There is no way this is performant and we are trying to minimize the usage of scalar_to_tensor(..., device) since it is an anti-pattern, see #49758.

Differential Revision: D25790331

There is no way this is performant and we are trying to minimize the usage of scalar_to_tensor(..., device) since it is an anti-pattern, see #49758.
@facebook-github-bot
Copy link
Copy Markdown
Contributor

facebook-github-bot commented Jan 5, 2021

💊 CI failures summary and remediations

As of commit 8268cef (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 44 times.

…elu_backward."

There is no way this is performant and we are trying to minimize the usage of scalar_to_tensor(..., device) since it is an anti-pattern, see #49758.

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

There is no way this is performant and we are trying to minimize the usage of scalar_to_tensor(..., device) since it is an anti-pattern, see #49758.

Differential Revision: [D25790331](https://our.internmc.facebook.com/intern/diff/D25790331)
gchanan added a commit that referenced this pull request Jan 5, 2021
There is no way this is performant and we are trying to minimize the usage of scalar_to_tensor(..., device) since it is an anti-pattern, see #49758.

ghstack-source-id: e247321
Pull Request resolved: #50115
…elu_backward."

There is no way this is performant and we are trying to minimize the usage of scalar_to_tensor(..., device) since it is an anti-pattern, see #49758.

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

There is no way this is performant and we are trying to minimize the usage of scalar_to_tensor(..., device) since it is an anti-pattern, see #49758.

Differential Revision: [D25790331](https://our.internmc.facebook.com/intern/diff/D25790331)
gchanan added a commit that referenced this pull request Jan 6, 2021
There is no way this is performant and we are trying to minimize the usage of scalar_to_tensor(..., device) since it is an anti-pattern, see #49758.

ghstack-source-id: bc4c36e
Pull Request resolved: #50115
…elu_backward."

There is no way this is performant and we are trying to minimize the usage of scalar_to_tensor(..., device) since it is an anti-pattern, see #49758.

Differential Revision: [D25790331](https://our.internmc.facebook.com/intern/diff/D25790331)
gchanan added a commit that referenced this pull request Jan 7, 2021
There is no way this is performant and we are trying to minimize the usage of scalar_to_tensor(..., device) since it is an anti-pattern, see #49758.

ghstack-source-id: ad01453
Pull Request resolved: #50115
@mruberry mruberry self-requested a review January 8, 2021 00:41
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!

…elu_backward."

There is no way this is performant and we are trying to minimize the usage of scalar_to_tensor(..., device) since it is an anti-pattern, see #49758.

Differential Revision: [D25790331](https://our.internmc.facebook.com/intern/diff/D25790331)
gchanan added a commit that referenced this pull request Jan 8, 2021
There is no way this is performant and we are trying to minimize the usage of scalar_to_tensor(..., device) since it is an anti-pattern, see #49758.

ghstack-source-id: e554873
Pull Request resolved: #50115
@gchanan
Copy link
Copy Markdown
Contributor Author

gchanan commented Jan 11, 2021

this is tested in test_nn.py::TestNN::test_RReLU.

@facebook-github-bot
Copy link
Copy Markdown
Contributor

@gchanan merged this pull request in c198e6c.

@facebook-github-bot facebook-github-bot deleted the gh/gchanan/351/head branch January 16, 2021 15:18
laurentdupin pushed a commit to laurentdupin/pytorch that referenced this pull request Apr 24, 2026
…d. (pytorch#50115)

Summary:
Pull Request resolved: pytorch#50115

There is no way this is performant and we are trying to minimize the usage of scalar_to_tensor(..., device) since it is an anti-pattern, see pytorch#49758.

Test Plan: Imported from OSS

Reviewed By: mruberry

Differential Revision: D25790331

Pulled By: gchanan

fbshipit-source-id: 89d6f016dfd76197541b0fd8da4a462876dbf844
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