Deprecated several functions at torch.nn.functional#8748
Deprecated several functions at torch.nn.functional#8748weiyangfb wants to merge 6 commits intopytorch:masterfrom
Conversation
torch/distributions/utils.py
Outdated
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
torch/distributions/transforms.py
Outdated
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
torch/distributions/transforms.py
Outdated
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
torch/distributions/transforms.py
Outdated
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
test/test_jit.py
Outdated
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
test/test_jit.py
Outdated
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
test/test_jit.py
Outdated
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
test/test_jit.py
Outdated
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
|
what happens if user tries to do |
|
@soumith ah, I see. Now it is an error, I will make a deprecated warning |
|
Other functions in
Let me know what you think @soumith . EDIT: there are not many changes if these functions are going to be deprecated, so can be a part of this PR too. |
|
@vishwakftw Yes I can deprecate cc @soumith |
|
wait, why would we deprecate |
|
@soumith That's right. We will keep them for now then. |
|
@pytorchbot retest this please |
|
I thought we could deprecate This is how pytorch/torch/nn/functional.py Lines 708 to 720 in 731273b |
|
@vishwakftw Ah, I see! So they are just not documented yet, I will add them to the docs. This way I think tensor([1.4261, 0.2250]) tensor([-0.0398, -0.1174]) |
|
So the goal now is to expose everything in the |
8a4bf4f to
1d19ab6
Compare
|
After offline discussion, we decide to move tanh and sigmoid from nn.functional to torch since they are more of common scientific functions, and keep the others at nn.functional for now. |
1d19ab6 to
4512e83
Compare
|
Failed Caffe2 CI tests look not related. Can I get a stamp on this? |
|
@pytorchbot retest this please |
facebook-github-bot
left a comment
There was a problem hiding this comment.
@weiyangfb has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
|
same for |
|
@vadimkantorov we probably will remove that, please dont rely on undocumented features. the |
|
@soumith ok :) I was hesitating if it was a deficit of documentation or a blunder of auto bindings :) Then it’s a consistency thing: |
|
the latter :) |
facebook-github-bot
left a comment
There was a problem hiding this comment.
@weiyangfb is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
4512e83 to
ce1d853
Compare
facebook-github-bot
left a comment
There was a problem hiding this comment.
@weiyangfb has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
Summary: 1. fixes pytorch#6245 2. deprecated tanh, sigmoid Closes pytorch#8748 Differential Revision: D8697975 Pulled By: weiyangfb fbshipit-source-id: f30714aa0611a1fe870040692f3dbcc8238aece9
summary