diff options
author | Cao Zongyan <zongyan.cao@alibaba-inc.com> | 2018-09-25 09:59:17 +0800 |
---|---|---|
committer | Cao Zongyan <zongyan.cao@alibaba-inc.com> | 2018-09-25 09:59:17 +0800 |
commit | f0886f7269de900d226455d4831722f6fc94a71b (patch) | |
tree | ac9a860a56ba5b686eb25e8f797631d06edff1e1 /tensorflow/python/ops | |
parent | 5e9a9547f907599f6954fc5e28b7a78acf3b54eb (diff) |
Fix build dependencies in tensorflow/cc/BUILD.
Diffstat (limited to 'tensorflow/python/ops')
-rw-r--r-- | tensorflow/python/ops/nn_ops.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/python/ops/nn_ops.py b/tensorflow/python/ops/nn_ops.py index d646245ce3..2861f40586 100644 --- a/tensorflow/python/ops/nn_ops.py +++ b/tensorflow/python/ops/nn_ops.py @@ -1601,7 +1601,7 @@ def leaky_relu(features, alpha=0.2, name=None): features = ops.convert_to_tensor(features, name="features") if features.dtype.is_integer: features = math_ops.to_float(features) - if compat.forward_compatible(2018, 10, 1): + if compat.forward_compatible(2018, 11, 1): return gen_nn_ops.leaky_relu(features, alpha=alpha, name=name) alpha = ops.convert_to_tensor(alpha, dtype=features.dtype, name="alpha") return math_ops.maximum(alpha * features, features, name=name) |