Skip to content

Commit 3f2f7a1

Browse files
Update hardshrink.py (#2649)
Currently the page https://www.tensorflow.org/addons/api_docs/python/tfa/activations/hardshrink?hl=de_DE is not rendered properly because of a missing backtick. Added a backtick to format and render the page correctly
1 parent 37a368a commit 3f2f7a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tensorflow_addons/activations/hardshrink.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def hardshrink(x: TensorLike, lower: Number = -0.5, upper: Number = 0.5) -> tf.T
4040
4141
Args:
4242
x: A `Tensor`. Must be one of the following types:
43-
`bfloat16`, float16`, `float32`, `float64`.
43+
`bfloat16`, `float16`, `float32`, `float64`.
4444
lower: `float`, lower bound for setting values to zeros.
4545
upper: `float`, upper bound for setting values to zeros.
4646
Returns:

0 commit comments

Comments
 (0)