Skip to content

Added Leaky Relu activation#4604

Merged
kavyasrinet merged 11 commits intoPaddlePaddle:developfrom
kavyasrinet:activations
Oct 5, 2017
Merged

Added Leaky Relu activation#4604
kavyasrinet merged 11 commits intoPaddlePaddle:developfrom
kavyasrinet:activations

Conversation

@kavyasrinet
Copy link

Implement:
f(x) = x if x >0 else (alpha * x)

LeakyReluOpMaker(framework::OpProto *proto,
framework::OpAttrChecker *op_checker)
: OpProtoAndCheckerMaker(proto, op_checker) {
AddInput("X", "Input of LeakyRelu operator");
Copy link
Contributor

Choose a reason for hiding this comment

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

It will be better if the comment can follow our name convention.
name_convention

Copy link
Author

Choose a reason for hiding this comment

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

I see, I didn't follow it because all the other operators in this file also did not follow the convention.

Add -D PADDLE_WITH_CUDA in cmake/configure.cmake
dzhwinter
dzhwinter previously approved these changes Oct 5, 2017
Copy link
Contributor

@dzhwinter dzhwinter left a comment

Choose a reason for hiding this comment

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

LGTM. Sorry, my bad, the activation always use the same parameter. :)

Copy link
Contributor

@dzhwinter dzhwinter left a comment

Choose a reason for hiding this comment

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

LGTM.

@kavyasrinet kavyasrinet merged commit 3e2be06 into PaddlePaddle:develop Oct 5, 2017
@kavyasrinet kavyasrinet deleted the activations branch October 9, 2017 23:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants