Skip to content

Commit add33d1

Browse files
committed
Fix docs
1 parent 18f1bb8 commit add33d1

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

tensorflow_addons/activations/tanhshrink.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def tanhshrink(features, name=None):
3232
3333
Args:
3434
features: A `Tensor`. Must be one of the following types:
35-
`float16`, `float32`, `float64`, `int32`, `int64`.
35+
`float16`, `float32`, `float64`.
3636
Returns:
3737
A `Tensor`. Has the same type as `features`.
3838
"""

tensorflow_addons/custom_ops/activations/cc/kernels/tanhshrink_op.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,7 @@ class TanhshrinkGradOp
6969

7070
// INPUTS:
7171
// g (gradients): backpropagated gradients
72-
// a (inputs): either the inputs that were passed to TanhshrinkOp(), or its
73-
// outputs (using either one yields the same result here).
72+
// a (inputs): the inputs that were passed to the Tanhshrink op.
7473
// OUTPUT:
7574
// gradients to backprop
7675
template <int NDIMS>
@@ -94,4 +93,4 @@ void TanhshrinkGradOp<Device, T>::OperateNoTemplate(OpKernelContext* context,
9493

9594
#undef EIGEN_USE_THREADS
9695

97-
#endif
96+
#endif // TENSORFLOW_ADDONS_ACTIVATIONS_KERNELS_TANHSHRINK_OP_H_

0 commit comments

Comments
 (0)