function step_(x, alpha = 0.0) {
    const $x = (0, _tensorUtilEnv.convertToTensor)(x, "x", "step");
    const inputs = {
        x: $x
    };
    const attrs = {
        alpha
    };
    return (0, _engine.ENGINE).runKernel((0, _kernelNames.Step), inputs, attrs);
}
Computes step of the input `tf.Tensor` element-wise: `x > 0 ? 1 : alpha`

```js
const x = tf.tensor1d([0, 2, -1, -3]);

x.step(.5).print();  // or tf.step(x, .5)
```
@param x The input tensor.
@param alpha The gradient when input is negative. Defaults to 0.

@doc {heading: 'Operations', subheading: 'Basic math'}