can optionally do the operation in-place. Default: FALSE
Shape
Input: \((N, *)\) where * means, any number of additional
dimensions
Output: \((N, *)\), same shape as the input
Details
Threshold is defined as:
$$
y =
\left\{ \begin{array}{ll}
x, &\mbox{ if } x > \mbox{threshold} \\
\mbox{value}, &\mbox{ otherwise }
\end{array}
\right.
$$