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

added crucial documentation on SELU activation #15337

Merged
merged 2 commits into from
Jun 4, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions tensorflow/core/api_def/base_api/api_def_Selu.pbtxt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ op {
description: <<END
if < 0, `scale * features` otherwise.

To be used together with
`initializer = tf.variance_scaling_initializer(factor=1.0, mode='FAN_IN')`.
For correct dropout, use `tf.contrib.nn.alpha_dropout`.

See [Self-Normalizing Neural Networks](https://arxiv.org/abs/1706.02515)
END
}
6 changes: 3 additions & 3 deletions tensorflow/go/op/wrappers.go
Original file line number Diff line number Diff line change
Expand Up @@ -18101,9 +18101,10 @@ func SparseFillEmptyRowsGrad(scope *Scope, reverse_index_map tf.Output, grad_val
}

// Computes scaled exponential linear: `scale * alpha * (exp(features) - 1)`
//
// if < 0, `scale * features` otherwise.
//
// Assumes weights to have zero mean and variance 1.0 / fan_in.
//
// See [Self-Normalizing Neural Networks](https://arxiv.org/abs/1706.02515)
func Selu(scope *Scope, features tf.Output) (activations tf.Output) {
if scope.Err() != nil {
Expand Down Expand Up @@ -24359,8 +24360,7 @@ type DecodeProtoV2Attr func(optionalAttr)
// If not specified, defaults to "local://"
func DecodeProtoV2DescriptorSource(value string) DecodeProtoV2Attr {
return func(m optionalAttr) {
m["descriptor_source"] = value
}
m["descriptor_source"] = value }
}

// DecodeProtoV2MessageFormat sets the optional message_format attribute to value.
Expand Down
2 changes: 2 additions & 0 deletions tensorflow/python/keras/activations.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ def selu(x):
- To be used together with the initialization "lecun_normal".
- To be used together with the dropout variant "AlphaDropout".

References:
- [Self-Normalizing Neural Networks](https://arxiv.org/abs/1706.02515)
"""
alpha = 1.6732632423543772848170429916717
scale = 1.0507009873554804934193349852946
Expand Down