Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding the Thresholded Relu Op #4685

Merged
merged 4 commits into from
Oct 11, 2017

Conversation

abhinavarora
Copy link
Contributor

Fixes #4612

@abhinavarora abhinavarora self-assigned this Oct 10, 2017
@abhinavarora
Copy link
Contributor Author

Forward Pass:
f(x) = x for x > threshold, f(x) = 0 otherwise

Gradient:
f'(x) = 1 for x > threshold, f'(x) = 0 otherwise

zchen0211
zchen0211 previously approved these changes Oct 10, 2017
Copy link
Contributor

@zchen0211 zchen0211 left a comment

Choose a reason for hiding this comment

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

LGTM.

Copy link
Member

@QiJune QiJune left a comment

Choose a reason for hiding this comment

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

LGTM

@abhinavarora abhinavarora merged commit b504a23 into PaddlePaddle:develop Oct 11, 2017
@abhinavarora abhinavarora deleted the thresholdedrelu branch October 11, 2017 17:41
Copy link
Contributor

@zchen0211 zchen0211 left a comment

Choose a reason for hiding this comment

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

LGTM

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.

None yet

3 participants