function add_(a, b) {
    let $a = (0, _tensorUtilEnv.convertToTensor)(a, "a", "add");
    let $b = (0, _tensorUtilEnv.convertToTensor)(b, "b", "add");
    [$a, $b] = (0, _tensorUtil.makeTypesMatch)($a, $b);
    const inputs = {
        a: $a,
        b: $b
    };
    return (0, _engine.ENGINE).runKernel((0, _kernelNames.Add), inputs);
}
Adds two `tf.Tensor`s element-wise, A + B. Supports broadcasting.


```js
const a = tf.tensor1d([1, 2, 3, 4]);
const b = tf.tensor1d([10, 20, 30, 40]);

a.add(b).print();  // or tf.add(a, b)
```

```js
// Broadcast add a with b.
const a = tf.scalar(5);
const b = tf.tensor1d([10, 20, 30, 40]);

a.add(b).print();  // or tf.add(a, b)
```
@param a The first `tf.Tensor` to add.
@param b The second `tf.Tensor` to add. Must have the same type as `a`.

@doc {heading: 'Operations', subheading: 'Arithmetic'}