Skip to content

Conversation

@zasdfgbnm
Copy link
Collaborator

@zasdfgbnm zasdfgbnm commented Jun 15, 2018

Also fuse input scale multiplication into ELU

Paper:
https://arxiv.org/pdf/1704.07483.pdf

@zasdfgbnm
Copy link
Collaborator Author

Just one unrelated fail, should be working now.

@zasdfgbnm
Copy link
Collaborator Author

Just some information: Changes in this PR is very similar to #4269 and b6a30f7 by @colesbury

@ssnl ssnl mentioned this pull request Jul 10, 2018
35 tasks
@zasdfgbnm zasdfgbnm requested review from ssnl and zou3519 as code owners July 13, 2018 16:21
@ssnl
Copy link
Collaborator

ssnl commented Jul 27, 2018

Thanks for your contribution! Were you able to compile locally? It seems to fail to compile on our CI machines.

@zasdfgbnm
Copy link
Collaborator Author

@ssnl There was a test added in master branch that break the build of this after merging. It is fixed now, and this PR is ready for review.

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

Misclicked land. Fortunately it didn't go through.

}

Tensor celu(const Tensor & self, Scalar alpha) {
Tensor inv_alpha = alpha.toTensor().reciprocal();

This comment was marked as off-topic.

Copy link
Member

@houseroad houseroad left a comment

Choose a reason for hiding this comment

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

ONNX part LG to me.

Nit: add test case in https://github.com/pytorch/pytorch/blob/master/test/onnx/test_operators.py to cover Elu

r"""Applies element-wise,
:math:`\text{CELU}(x) = \max(0,x) + \min(0, \alpha * (\exp(x/\alpha) - 1))`
More details can be found in the paper `Continuously Differentiable Exponential Linear Units`_ .

This comment was marked as off-topic.

This comment was marked as off-topic.

@zasdfgbnm
Copy link
Collaborator Author

@houseroad @ssnl I've made those improvements.

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

SsnL has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@ssnl
Copy link
Collaborator

ssnl commented Aug 1, 2018

Thanks! @zasdfgbnm

@zasdfgbnm zasdfgbnm deleted the celu branch August 1, 2018 15:55
zdevito pushed a commit to zdevito/ATen that referenced this pull request Aug 1, 2018
Summary:
Also fuse input scale multiplication into ELU

Paper:
https://arxiv.org/pdf/1704.07483.pdf
Pull Request resolved: pytorch/pytorch#8551

Differential Revision: D9088477

Pulled By: SsnL

fbshipit-source-id: 877771bee251b27154058f2b67d747c9812c696b
goodlux pushed a commit to goodlux/pytorch that referenced this pull request Aug 15, 2018
Summary:
Also fuse input scale multiplication into ELU

Paper:
https://arxiv.org/pdf/1704.07483.pdf
Pull Request resolved: pytorch#8551

Differential Revision: D9088477

Pulled By: SsnL

fbshipit-source-id: 877771bee251b27154058f2b67d747c9812c696b
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.

5 participants