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

Using latex fraction syntax in sigmoid and logsigmoid op #6292

Merged
merged 1 commit into from
Dec 5, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions paddle/operators/activation_op.cc
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ class SigmoidOpMaker : public framework::OpProtoAndCheckerMaker {
AddInput("X", "Input of Sigmoid operator");
AddOutput("Y", "Output of Sigmoid operator");
AddComment(R"DOC(
Sigmoid Activation Operator.
Sigmoid Activation Operator

$y = 1 / (1 + e^{-x})$
$$y = \frac{1}{1 + e^{-x}}$$

)DOC");
}
Expand All @@ -60,9 +60,9 @@ class LogSigmoidOpMaker : public framework::OpProtoAndCheckerMaker {
AddInput("X", "Input of LogSigmoid operator");
AddOutput("Y", "Output of LogSigmoid operator");
AddComment(R"DOC(
Logsigmoid Activation Operator.
Logsigmoid Activation Operator

$y = \log(1 / (1 + e^{-x}))$
$$y = \log \frac{1}{1 + e^{-x}}$$

)DOC");
}
Expand Down