We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9d28deb commit 6dccb6aCopy full SHA for 6dccb6a
tfjs-core/src/ops/step.ts
@@ -26,15 +26,15 @@ import {TensorLike} from '../types';
26
import {op} from './operation';
27
28
/**
29
- * Computes step of the input `tf.Tensor` element-wise: `x > 0 ? 1 : alpha * x`
+ * Computes step of the input `tf.Tensor` element-wise: `x > 0 ? 1 : alpha`
30
*
31
* ```js
32
* const x = tf.tensor1d([0, 2, -1, -3]);
33
34
* x.step(.5).print(); // or tf.step(x, .5)
35
* ```
36
* @param x The input tensor.
37
- * @param alpha The gradient when input is negative.
+ * @param alpha The gradient when input is negative. Defaults to 0.
38
39
* @doc {heading: 'Operations', subheading: 'Basic math'}
40
*/
0 commit comments