Skip to content

Handle log_sigmoid(out=) properly.#36736

Closed
gchanan wants to merge 2 commits intogh/gchanan/243/basefrom
gh/gchanan/243/head
Closed

Handle log_sigmoid(out=) properly.#36736
gchanan wants to merge 2 commits intogh/gchanan/243/basefrom
gh/gchanan/243/head

Conversation

@gchanan
Copy link
Copy Markdown
Contributor

@gchanan gchanan commented Apr 16, 2020

Stack from ghstack:

Fixes: #36499

Changes:

  1. Moves some bindings from LegacyNNDefinitions to Activation so all of log_sigmoid lives together
  2. Properly handle non-contiguous / incorrectly sized out parameters to log_sigmoid. This is done by copying from a buffer if necessary.
  3. Require that the internal buffer (different from 2)) is contiguous. This should always be the case because it's always created internally.
  4. Adds a test

Differential Revision: D21070934

Fixes: #36499

Changes:
1) Moves some bindings from LegacyNNDefinitions to Activation so all of log_sigmoid lives together
2) Properly handle non-contiguous / incorrectly sized out parameters to log_sigmoid.  This is done by copying from a buffer if necessary.
3) Require that the internal buffer (different from 2)) is contiguous.  This should always be the case because it's always created internally.
4) Adds a test

[ghstack-poisoned]
gchanan added a commit that referenced this pull request Apr 16, 2020
Fixes: #36499

Changes:
1) Moves some bindings from LegacyNNDefinitions to Activation so all of log_sigmoid lives together
2) Properly handle non-contiguous / incorrectly sized out parameters to log_sigmoid.  This is done by copying from a buffer if necessary.
3) Require that the internal buffer (different from 2)) is contiguous.  This should always be the case because it's always created internally.
4) Adds a test

ghstack-source-id: b24571b
Pull Request resolved: #36736
@dr-ci
Copy link
Copy Markdown

dr-ci Bot commented Apr 16, 2020

💊 Build failures summary and remediations

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


  • 1/1 failures introduced in this PR

XLA failure

Job pytorch_xla_linux_bionic_py3_6_clang9_build is failing. Please create an issue with title prefixed by [PT_BREAK] in pytorch/xla and link to to this PR. If you have questions, please reach out to @ailzhang / @dlibenzi / @JackCaoG.


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 on the GitHub issue tracker.

See how this bot performed.

This comment has been revised 4 times.

Fixes: #36499

Changes:
1) Moves some bindings from LegacyNNDefinitions to Activation so all of log_sigmoid lives together
2) Properly handle non-contiguous / incorrectly sized out parameters to log_sigmoid.  This is done by copying from a buffer if necessary.
3) Require that the internal buffer (different from 2)) is contiguous.  This should always be the case because it's always created internally.
4) Adds a test

Differential Revision: [D21070934](https://our.internmc.facebook.com/intern/diff/D21070934)

[ghstack-poisoned]
gchanan added a commit that referenced this pull request Apr 16, 2020
Fixes: #36499

Changes:
1) Moves some bindings from LegacyNNDefinitions to Activation so all of log_sigmoid lives together
2) Properly handle non-contiguous / incorrectly sized out parameters to log_sigmoid.  This is done by copying from a buffer if necessary.
3) Require that the internal buffer (different from 2)) is contiguous.  This should always be the case because it's always created internally.
4) Adds a test

ghstack-source-id: 7c0cdfa
Pull Request resolved: #36736
@gchanan
Copy link
Copy Markdown
Contributor Author

gchanan commented Apr 17, 2020

XLA failure appears to be bogus.

@dlibenzi
Copy link
Copy Markdown
Contributor

XLA failure appears to be bogus.

It likely needs a rebase.
Ed changed that part of the code recently.

@facebook-github-bot
Copy link
Copy Markdown
Contributor

@gchanan merged this pull request in 4c666d4.

@facebook-github-bot facebook-github-bot deleted the gh/gchanan/243/head branch April 21, 2020 14:16
laurentdupin pushed a commit to laurentdupin/pytorch that referenced this pull request Apr 24, 2026
Summary:
Pull Request resolved: pytorch#36736

Fixes: pytorch#36499

Changes:
1) Moves some bindings from LegacyNNDefinitions to Activation so all of log_sigmoid lives together
2) Properly handle non-contiguous / incorrectly sized out parameters to log_sigmoid.  This is done by copying from a buffer if necessary.
3) Require that the internal buffer (different from 2)) is contiguous.  This should always be the case because it's always created internally.
4) Adds a test

Test Plan: Imported from OSS

Differential Revision: D21070934

Pulled By: gchanan

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants