* Return a new Tensor with every element subtracted by a constant. * @param {number} val The value to subtract by. * @returns {Tensor} The new tensor.
(val)
| 318 | * @returns {Tensor} The new tensor. |
| 319 | */ |
| 320 | sub(val) { |
| 321 | return this.clone().sub_(val); |
| 322 | } |
| 323 | |
| 324 | /** |
| 325 | * Subtract the tensor by a constant in place. |
no test coverage detected