* Return a new Tensor with every element added by a constant. * @param {number} val The value to add by. * @returns {Tensor} The new tensor.
(val)
| 296 | * @returns {Tensor} The new tensor. |
| 297 | */ |
| 298 | add(val) { |
| 299 | return this.clone().add_(val); |
| 300 | } |
| 301 | |
| 302 | /** |
| 303 | * Add the tensor by a constant in place. |
no test coverage detected